Enumeration

MTLTessellationFactorStepFunction

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

Declaration

enum MTLTessellationFactorStepFunction : UInt

Overview

Topics

Constants

case constant

A constant step function. For all instances, the tessellation factor for all patches in a patch draw call is at the offset location in the tessellation factor buffer.

case perPatch

A per-patch step function. For all instances, the tessellation factor for all patches in a patch draw call is at the offset + (drawPatchIndex * tessellationFactorStride) location in the tessellation factor buffer.

case perInstance

A per-instance step function. For a given instance ID, the tessellation factor for a patch in a patch draw call is at the offset + (instanceID * instanceStride) location in the tessellation factor buffer.

case perPatchAndPerInstance

A per-patch and per-instance step function. For a given instance ID, the tessellation factor for a patch in a patch draw call is at the offset + (drawPatchIndex * tessellationFactorStride + instanceID * instanceStride) location in the tessellation factor buffer.

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 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 MTLTessellationPartitionMode

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