---
title: "setTangentOffsets(_:offset:)"
framework: realitykit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "realitykit/lowleveldeformation/blendshape-swift.struct/settangentoffsets(_:offset:)"
---

# setTangentOffsets(_:offset:)

Sets the buffer containing blend-shape tangent offsets.

## Declaration

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

## Parameters

- `buffer`: The Metal buffer containing the blend-shape tangent offsets.
- `offset`: The byte offset into buffer where the data begins.

## Discussion

Discussion The buffer must contain targetCount × vertexCount entries in the same format as the input mesh’s .tangent attribute. note: If offset is out of bounds for buffer, or if the buffer is too small.
