---
title: "setBuffers(_:offsets:range:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlintersectionfunctiontable/setbuffers(_:offsets:range:)"
---

# setBuffers(_:offsets:range:)

Sets a range of buffers for the intersection functions.

## Declaration

```swift
func setBuffers(_ buffers: [(any MTLBuffer)?], offsets: [Int], range: Range<Int>)
```

## Parameters

- `buffers`: An array of buffers to insert into the table.
- `offsets`: An array of offsets to insert into the table.
- `range`: A range of indices in the function table’s buffer argument table.

## See Also

### Specifying arguments for intersection functions

- [setBuffer(_:offset:index:)](metal/mtlintersectionfunctiontable/setbuffer(_:offset:index:).md)
- [setVisibleFunctionTable(_:bufferIndex:)](metal/mtlintersectionfunctiontable/setvisiblefunctiontable(_:bufferindex:).md)
- [setVisibleFunctionTables(_:bufferRange:)](metal/mtlintersectionfunctiontable/setvisiblefunctiontables(_:bufferrange:).md)
