Protocol

MTLDrawable

A displayable resource that can be rendered or written to.

Declaration

@protocol MTLDrawable

Topics

Presenting the Drawable

- present

Presents the drawable on the screen as soon as possible.

Required.

- presentAfterMinimumDuration:

Presents the drawable on the screen after waiting for the previous drawable to meet the minimum display time.

Required.

- presentAtTime:

Presents the drawable on the screen at a specific host time.

Required.

- addPresentedHandler:

Registers a block of code that is called immediately after the drawable has been presented on the screen.

Required.

MTLDrawablePresentedHandler

A block of code invoked when a drawable has been presented.

Identifying the Drawable

drawableID

A positive integer that identifies the drawable.

Required.

presentedTime

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

Required.

Relationships

Inherits From

Inherited By

See Also

Metal Drawables

Obtaining, Presenting, and Releasing Drawables

Hold drawables as briefly as possible to avoid blocking your own work.

CAMetalDrawable

A displayable resource that can be rendered or written to by Metal.