Instance Property

allowsNextDrawableTimeout

A Boolean value that determines whether Metal drawables are allowed to time out or wait indefinitely.

Declaration

@property BOOL allowsNextDrawableTimeout;

Discussion

If YES, nextDrawable method returns nil after one second of waiting for a drawable, if a free drawable is not available. If NO, the nextDrawable method waits indefinitely until a free drawable is available.

The default value is YES.

See Also

Configuring the Metal Layer

pixelFormat

The pixel format of textures for rendering layer content.

framebufferOnly

A Boolean value that determines whether the layer’s textures are restricted for use as framebuffer attachments.

drawableSize

The size, in pixels, of textures for rendering layer content.

colorspace

The color space of the rendered content.

presentsWithTransaction

A Boolean value that determines whether the layer presents its content using a Core Animation transaction.

wantsExtendedDynamicRangeContent

Enables extended dynamic range values on the screen.

EDRMetadata

Metadata describing the tone mapping to apply to the extended dynamic range (EDR) values in the layer.

displaySyncEnabled

A Boolean value that determines whether the Metal layer and it's drawables are synchronized with the display's refresh rate.

maximumDrawableCount

An integer value that controls the number of Metal drawables in the resource pool managed by Core Animation.