Instance Property

colorspace

The color space of the rendered content.

Declaration

var colorspace: CGColorSpace? { get set }

Discussion

Set this value to allow the rendered content to be color-matched to the color space of the context containing this view (which is typically the display’s color space).

The default value is nil, indicating that the rendered content is not color-matched.

See Also

Configuring the Render Target Properties

var clearColor: MTLClearColor

The color clear value used to generate the currentRenderPassDescriptor object.

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.