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

# replaceInfluenceJointIndices(_:)

Fills the influence joint index buffer using the given closure.

## Declaration

```swift
func replaceInfluenceJointIndices<R>(_ body: @_lifetime(0: copy 0) (inout MutableRawSpan) -> R) throws(LowLevelDeformation.Error) -> R where R : ~Copyable
```

## Parameters

- `body`: A closure that receives a mutable span over the buffer.

## Return Value

Return Value The value returned by body.

## Discussion

Discussion After the closure returns, the framework validates every index. An out-of-range index causes a throw. note: If any index is outside [0, skinning.jointTransformCount).

## 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)
- [setInverseBindPoses(_:offset:)](realitykit/lowleveldeformation/skinning-swift.struct/setinversebindposes(_:offset:).md)
