Contents

sampleCount

The number of samples in each fragment.

Declaration

var sampleCount: Int { get set }

Discussion

The default value is 1. If textureType is not MTLTextureType.type2DMultisample or MTLTextureType.type2DMultisampleArray, this value needs to be 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

Specifying texture attributes