MTLDrawable

A displayable resource that can be rendered or written to.

Members

Functions

addPresentedHandler
void addPresentedHandler(MTLDrawablePresentedHandler )

Registers a block of code to be called immediately after the drawable is presented.

drawableID
NSUInteger drawableID()

A positive integer that identifies the drawable.

present
void present()

Presents the drawable onscreen as soon as possible.

present
void present(CFTimeInterval presentationTime)

Presents the drawable onscreen at a specific host time.

presentAfterMinimumDuration
void presentAfterMinimumDuration(CFTimeInterval duration)

Presents the drawable onscreen as soon as possible after a previous drawable is visible for the specified duration.

presentedTime
CFTimeInterval presentedTime()

The host time, in seconds, when the drawable was displayed onscreen.

Meta