---
title: "setBufferSlice(_:at:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/lowlevelargumenttable/setbufferslice(_:at:)"
---

# setBufferSlice(_:at:)

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

## Declaration

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

## Parameters

- `bufferSlice`: The buffer slice to bind to the slot.
- `index`: The slot index within the argument table’s buffer array.

## Discussion

Discussion note: LowLevelRenderContextError if index is out of range or bufferSlice is incompatible with the slot.

## See Also

### Accessing buffer slices

- [bufferSlice(at:)](realitykit/lowlevelargumenttable/bufferslice(at:).md)
