CAMetalDrawable

A Metal drawable associated with a Core Animation layer.

version(D_ObjectiveC)
extern (Objective-C) extern
interface CAMetalDrawable : MTLDrawable {}

Members

Functions

texture
MTLTexture texture()

A Metal texture object that contains the drawable’s contents.

Inherited Members

From MTLDrawable

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.

addPresentedHandler
void addPresentedHandler(MTLDrawablePresentedHandler )

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

presentedTime
CFTimeInterval presentedTime()

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

Meta