Instance Property

clearColor

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

Declaration

@property(nonatomic) MTLClearColor clearColor;

Discussion

When the view creates a render pass, it sets the load action for the color render target to MTLLoadActionClear and uses this color as the clear color. The default value is (0.0, 0.0, 0.0, 1.0).

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.

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.