<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelArgumentTable/setBufferSlice(_:at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer21LowLevelArgumentTableC14setBufferSlice_2atyAA0deiJ0V_SitAA0dE18RenderContextErrorVYKF"
  },
  "title" : "setBufferSlice(_:at:)"
}
-->

# setBufferSlice(_:at:)

Binds a buffer slice to the slot at the given index.

```
final func setBufferSlice(_ bufferSlice: LowLevelBufferSlice, at index: Int) throws(LowLevelRenderContextError)
```

## Parameters

`bufferSlice`

The buffer slice to bind to the slot. Its size must be no smaller than the slot’s [`size`](/documentation/RealityKit/LowLevelArgumentTable/Descriptor-swift.struct/Buffer/size).

`index`

The slot index within the argument table’s buffer array.

## Discussion> Throws: ``doc://com.apple.RealityKit/documentation/RealityKit/LowLevelRenderContextError`` if `index` is out of range or `bufferSlice` is
> incompatible with the slot.

---

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)