setWeights(_:offset:)
Sets the buffer containing blend-shape weights.
Declaration
func setWeights(_ buffer: any MTLBuffer, offset: Int) throws(LowLevelDeformation.Error)Parameters
- buffer:
The Metal buffer containing the blend weights.
- offset:
The byte offset into
bufferwhere the data begins.
Discussion
The buffer must contain targetCount Float values, one per blend-shape target.