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
bufferwhere the data begins.
Discussion
The buffer must contain influencesPerVertex × vertexCount Float values.