Contents

radiusBuffer

Assigns a reference to a buffer containing the curve radius for each control point.

Declaration

var radiusBuffer: MTL4BufferRange { get set }

Discussion

Metal interpolates curve radii according to the basis function you specify via curveBasis.

You are responsible for ensuring the type of each radius matches the type property radiusFormat specifies, that each radius is at least zero, and that the buffer address of the range is not zero.