Instance Method

setTessellationFactorBuffer(_:offset:instanceStride:)

Sets the per-patch tessellation factors buffer for the tessellator.

Required.

Declaration

func setTessellationFactorBuffer(_ buffer: MTLBuffer?, offset: Int, instanceStride: Int)

Parameters

buffer

The per-patch tessellation factors buffer.

offset

The distance, in bytes, between the start of the data and the start of the buffer. This value must be a multiple of 4 bytes.

instanceStride

The distance, in bytes, between two instances of data in the buffer. This value must be a multiple of 4 bytes.

Discussion

You must call this method before issuing a patch draw call. The per-patch tessellation factors buffer must not be empty or nil.

See Also

Specifying Tessellation Factors

func setTessellationFactorScale(Float)

Sets the scale factor applied to the per-patch tessellation factors.

Required.