Instance Property

maxTessellationFactor

Specifies the maximum tessellation factor to be used by the tessellator when tessellating a patch (or patches).

Declaration

var maxTessellationFactor: Int { get set }

Discussion

The default value is 16 and the maximum value is 64. Any value in between must be set according to the partitioning mode specified by the tessellationPartitionMode property:

See Also

Specifying Tessellation State

var isTessellationFactorScaleEnabled: Bool

Determines whether the tessellation factor is scaled.

var tessellationFactorFormat: MTLTessellationFactorFormat

The format of the tessellation factors specified in the tessellation factor buffer.

var tessellationControlPointIndexType: MTLTessellationControlPointIndexType

The size of the control point indices in a control point index buffer.

var tessellationFactorStepFunction: MTLTessellationFactorStepFunction

The step function used to determine the tessellation factors for a patch from the tessellation factor buffer.

var tessellationOutputWindingOrder: MTLWinding

The winding order of triangles output by the tessellator.

var tessellationPartitionMode: MTLTessellationPartitionMode

The partitioning mode used by the tessellator to derive the number and spacing of segments used to subdivide a corresponding edge.

enum MTLTessellationFactorFormat

The format of the tessellation factors in a tessellation factor buffer.

enum MTLTessellationControlPointIndexType

The size of the control point indices in a control point index buffer.

enum MTLTessellationFactorStepFunction

The step function used to determine the tessellation factors for a patch from the tessellation factor buffer.

enum MTLTessellationPartitionMode

The partitioning mode used by the tessellator to derive the number and spacing of segments used to subdivide a corresponding edge.