<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelDeformation/Skinning-swift.struct/setInfluenceWeights(_:offset:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityCoreDeformation08LowLevelC0C8SkinningV19setInfluenceWeights_6offsetySo9MTLBuffer_p_SitKF"
  },
  "title" : "setInfluenceWeights(_:offset:)"
}
-->

# setInfluenceWeights(_:offset:)

Sets the buffer containing per-vertex influence weights.

```
func setInfluenceWeights(_ buffer: any MTLBuffer, offset: Int) throws
```

## Parameters

`buffer`

The Metal buffer containing the influence weights.

`offset`

The byte offset into `buffer` where the data begins.

## Discussion

The buffer must contain `influencesPerVertex × vertexCount` Float values.

> Throws: If `offset` is out of bounds for `buffer`, or if the buffer is too small.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)