Instance Property

sampleCount

The sample count used to generate the multisampleColorTexture object.

Declaration

var sampleCount: Int { get set }

Discussion

The default value is 1.

Support for different sample count values varies by device. Call the supportsTextureSampleCount(_:) method to determine if your desired sample count value is supported.

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 colorspace: CGColorSpace?

The color space of the rendered content.