---
title: "setVisibleFunctionTable(_:bufferIndex:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlintersectionfunctiontable/setvisiblefunctiontable(_:bufferindex:)"
---

# setVisibleFunctionTable(_:bufferIndex:)

Sets a visible function table for the intersection functions.

## Declaration

```swift
func setVisibleFunctionTable(_ functionTable: (any MTLVisibleFunctionTable)?, bufferIndex: Int)
```

## Parameters

- `functionTable`: A visible function table.
- `bufferIndex`: An index in the function table’s buffer argument table.

## See Also

### Specifying arguments for intersection functions

- [setBuffer(_:offset:index:)](metal/mtlintersectionfunctiontable/setbuffer(_:offset:index:).md)
- [setBuffers(_:offsets:range:)](metal/mtlintersectionfunctiontable/setbuffers(_:offsets:range:).md)
- [setVisibleFunctionTables(_:bufferRange:)](metal/mtlintersectionfunctiontable/setvisiblefunctiontables(_:bufferrange:).md)
