Contents

setInfluenceWeights(_:offset:)

Sets the buffer containing per-vertex influence weights.

Declaration

func setInfluenceWeights(_ buffer: any MTLBuffer, offset: Int) throws(LowLevelDeformation.Error)

Parameters

  • buffer:

    The Metal buffer containing the influence weights.

  • offset:

    The byte offset into buffer where the data begins.

Discussion

The buffer must contain influencesPerVertex × vertexCount Float values.

See Also

Configuring skinning data