Instance Property

colorPixelFormat

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

Declaration

var colorPixelFormat: MTLPixelFormat { get set }

Discussion

The pixel format for a MetalKit view must be bgra8Unorm, bgra8Unorm_srgb, rgba16Float, BGRA10_XR, or bgra10_XR_sRGB.

The default value is bgra8Unorm.

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 sampleCount: Int

The sample count used to generate the multisampleColorTexture object.

var colorspace: CGColorSpace?

The color space of the rendered content.