---
title: "setTileVisibleFunctionTable(_:bufferIndex:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlrendercommandencoder/settilevisiblefunctiontable(_:bufferindex:)"
---

# setTileVisibleFunctionTable(_:bufferIndex:)

Assigns a visible function table to an entry in the tile shader argument table.

## Declaration

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

## Parameters

- `functionTable`: An doc://com.apple.metal/documentation/Metal/MTLVisibleFunctionTable instance the command assigns to an entry in the tile shader argument table for visible function tables.
- `bufferIndex`: An integer that represents the entry in the tile shader argument table for visible function tables that stores a record of functionTable.

## Discussion

Discussion By default, the visible function table at each index is nil.

## See Also

### Assigning visible function tables

- [setTileVisibleFunctionTables(_:bufferRange:)](metal/mtlrendercommandencoder/settilevisiblefunctiontables(_:bufferrange:).md)
