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

# setInverseBindPoses(_:offset:)

Sets the buffer containing inverse bind-pose matrices.

## Declaration

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

## Parameters

- `buffer`: The Metal buffer containing the inverse bind-pose 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

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