Instance Property

framebufferOnly

A Boolean value that determines whether the drawable’s textures are used only for rendering.

Declaration

@property(nonatomic) BOOL framebufferOnly;

Discussion

If the value is YES (the default), the underlying CAMetalLayer object allocates its textures with only the MTLTextureUsageRenderTarget usage flag. Core Animation can then optimize the textures for display purposes. However, you may not sample, read from, or write to those textures. If the value is NO, you can sample or perform read/write operations on the textures, but at a cost to performance.

See Also

Configuring the Color Render Target

colorPixelFormat

The color pixel format for the current drawable’s texture.

colorspace

The color space of the rendered content.

drawableSize

The current size of drawable textures.

preferredDrawableSize

The recommended dimensions of the drawable.

autoResizeDrawable

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

clearColor

The color to use to clear the color target when creating a render pass descriptor.