Instance Property

isTessellationFactorScaleEnabled

Determines whether the tessellation factor is scaled.

Declaration

var isTessellationFactorScaleEnabled: Bool { get set }

Discussion

The default value is false.

If this value is true, a scale factor is applied to the tessellation factors after the patch cull check is performed but before the tessellation factors are clamped to the value of maxTessellationFactor. The scale factor is applied only if the patch is not culled.

See Also

Specifying Tessellation State

var maxTessellationFactor: Int

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

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.