Instance Property


A Boolean value that determines whether the drawable can be used for texture sampling or read/write operations.


var framebufferOnly: Bool { get set }


If the value is true (the default), the underlying CAMetalLayer object allocates its MTLTexture objects in ways that are optimized for display purposes. However, you may not sample, read from, or write to those textures. If the value is false, you can sample or perform read/write operations on its textures (at a cost to performance).

See Also

Managing Your Render Target

var autoResizeDrawable: Bool

A Boolean value that controls whether to resize the drawable as the view changes size.

var drawableSize: CGSize

The current size of drawable textures.

var presentsWithTransaction: Bool

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