<!--
{
  "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/BlendShape-swift.struct/setNormalOffsets(_:offset:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityCoreDeformation08LowLevelC0C10BlendShapeV16setNormalOffsets_6offsetySo9MTLBuffer_p_SitKF"
  },
  "title" : "setNormalOffsets(_:offset:)"
}
-->

# setNormalOffsets(_:offset:)

Sets the buffer containing blend-shape normal offsets.

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

## Parameters

`buffer`

The Metal buffer containing the blend-shape normal offsets.

`offset`

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

## Discussion

The buffer must contain `targetCount × vertexCount` entries in the same
format as the input mesh’s `.normal` attribute.

> 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)