Instance Property


Determines whether primitives are rasterized.


var isRasterizationEnabled: Bool { get set }


The default value is true, indicating that primitives are rasterized. If the value is false, then primitives are dropped prior to rasterization (i.e. rasterization is disabled). Disabling rasterization may be useful to gather data from vertex-only transformations.

When this value is false, no fragments are processed and the vertex shader function must return void.

See Also

Specifying Rasterization and Visibility State

var sampleCount: Int

The number of samples in each fragment.

var isAlphaToCoverageEnabled: Bool

Indicates whether the alpha channel fragment output for colorAttachments is read and used to compute a sample coverage mask.

var isAlphaToOneEnabled: Bool

Indicates whether the alpha channel values for colorAttachments are forced to 1.0, which is the largest representable value.

var inputPrimitiveTopology: MTLPrimitiveTopologyClass

Indicates the type of primitive topology being rendered.

var rasterSampleCount: Int

The number of samples in each fragment.

enum MTLPrimitiveTopologyClass

The primitive topologies available for rendering.