Enumeration

MTLPrimitiveTopologyClass

The primitive topologies available for rendering.

Declaration

enum MTLPrimitiveTopologyClass : UInt

Topics

Constants

case unspecified

An unspecified primitive.

case point

A point primitive.

case line

A line primitive.

case triangle

A triangle primitive.

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 isRasterizationEnabled: Bool

Determines whether primitives are rasterized.

var inputPrimitiveTopology: MTLPrimitiveTopologyClass

Indicates the type of primitive topology being rendered.

var rasterSampleCount: Int

The number of samples in each fragment.