Instance Property

colorPixelFormat

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

Declaration

@property(nonatomic) MTLPixelFormat colorPixelFormat;

Discussion

The pixel format must be one that the underlying CAMetalLayer can use. See pixelFormat.

The default value is MTLPixelFormatBGRA8Unorm.

See Also

Configuring the Color Render Target

colorspace

The color space of the rendered content.

framebufferOnly

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

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.