Instance Property

drawableSize

The current size of drawable textures.

Declaration

var drawableSize: CGSize { get set }

Discussion

The size of the currentDrawable object’s texture, depthStencilTexture, and multisampleColorTexture. If autoResizeDrawable is enabled, this value is updated whenever the view’s size changes. If autoResizeDrawable is disabled, set this value to fix the size of the texture objects.

The default value is derived from the current view’s size, in native pixels.

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 framebufferOnly: Bool

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

var presentsWithTransaction: Bool

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