---
title: "setJointTransforms(_:offset:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/lowleveldeformation/skinning-swift.struct/setjointtransforms(_:offset:)"
---

# setJointTransforms(_:offset:)

Sets the buffer containing joint transform matrices.

## Declaration

```swift
func setJointTransforms(_ buffer: any MTLBuffer, offset: Int) throws(LowLevelDeformation.Error)
```

## Parameters

- `buffer`: The Metal buffer containing the joint transform matrices.
- `offset`: The byte offset into buffer where the data begins.

## Discussion

Discussion The buffer must contain jointTransformCount float4x4 matrices. note: If offset is out of bounds for buffer, or if the buffer is too small.

## See Also

### Configuring skinning data

- [setInfluenceWeights(_:offset:)](realitykit/lowleveldeformation/skinning-swift.struct/setinfluenceweights(_:offset:).md)
- [setInverseBindPoses(_:offset:)](realitykit/lowleveldeformation/skinning-swift.struct/setinversebindposes(_:offset:).md)
- [replaceInfluenceJointIndices(_:)](realitykit/lowleveldeformation/skinning-swift.struct/replaceinfluencejointindices(_:).md)
