Instance Property

clearColor

The color clear value used to generate the currentRenderPassDescriptor object.

Declaration

var clearColor: MTLClearColor { get set }

Discussion

The default value is (0.0, 0.0, 0.0, 1.0).

See Also

Configuring the Render Target Properties

var clearDepth: Double

The depth clear value used to generate the currentRenderPassDescriptor object.

var clearStencil: UInt32

The stencil clear value used to generate the currentRenderPassDescriptor object.

var colorPixelFormat: MTLPixelFormat

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

var sampleCount: Int

The sample count used to generate the multisampleColorTexture object.

var colorspace: CGColorSpace?

The color space of the rendered content.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software