setTangentOffsets(_:offset:)
Sets the buffer containing blend-shape tangent offsets.
Declaration
func setTangentOffsets(_ buffer: any MTLBuffer, offset: Int) throws(LowLevelDeformation.Error)Parameters
- buffer:
The Metal buffer containing the blend-shape tangent offsets.
- offset:
The byte offset into
bufferwhere the data begins.
Discussion
The buffer must contain targetCount × vertexCount entries in the same format as the input mesh’s .tangent attribute.