Instance Property

framebufferOnly

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

Declaration

@property BOOL framebufferOnly;

Discussion

If the value is YES (the default), the CAMetalLayer class allocates its MTLTexture objects with only the MTLTextureUsageRenderTarget usage flag. Core Animation can then optimize the texture for display purposes. However, you may not sample, read from, or write to those textures. To support sampling and pixel read/write operations (at a cost to performance), set this value to NO.

See Also

Configuring the Layer's Drawable Objects

pixelFormat

The pixel format of the layer’s textures.

colorspace

The color space of the rendered content.

drawableSize

The size, in pixels, of textures for rendering layer content.