---
title: "setTileVisibleFunctionTables(_:bufferRange:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlrendercommandencoder/settilevisiblefunctiontables(_:bufferrange:)"
---

# setTileVisibleFunctionTables(_:bufferRange:)

Assigns multiple visible function tables to a range of entries in the tile shader argument table.

## Declaration

```swift
func setTileVisibleFunctionTables(_ functionTables: [(any MTLVisibleFunctionTable)?], bufferRange: Range<Int>)
```

## Parameters

- `functionTables`: An array of doc://com.apple.metal/documentation/Metal/MTLVisibleFunctionTable instances the command assigns to entries in the tile shader argument table for visible function tables.
- `bufferRange`: A span of integers that represent the entries in the tile shader argument table for visible function tables. Each entry stores a record of the corresponding element in functionTables.

## Discussion

Discussion By default, the visible function table at each index is nil. note: The Objective-C version of this method is setTileVisibleFunctionTables:withBufferRange:.

## See Also

### Assigning visible function tables

- [setTileVisibleFunctionTable(_:bufferIndex:)](metal/mtlrendercommandencoder/settilevisiblefunctiontable(_:bufferindex:).md)
