Instance Property


The number of Metal drawables in the resource pool managed by Core Animation.


var maximumDrawableCount: Int { get set }


You can set this value to 2 or 3 only; if you pass a different value, Core Animation ignores the value and throws an exception.

The default value is 3.

See Also

Obtaining a Metal Drawable

func nextDrawable() -> CAMetalDrawable?

Waits until a Metal drawable is available, and then returns it.

var allowsNextDrawableTimeout: Bool

A Boolean value that determines whether requests for a new buffer expire if the system can’t satisfy them.