Instance Property

allowsNextDrawableTimeout

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

Declaration

var allowsNextDrawableTimeout: Bool { get set }

Discussion

If true, the nextDrawable() method returns nil if it can’t provide a drawable object within one second. If false, the nextDrawable() method waits indefinitely for a drawable to become available.

The default value is true.

See Also

Obtaining a Metal Drawable

func nextDrawable() -> CAMetalDrawable?

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

var maximumDrawableCount: Int

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