Contents

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 buffer where the data begins.

Discussion

The buffer must contain targetCount Float values, one per blend-shape target.

See Also

Setting blend data