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

# setVertexVisibleFunctionTable(_:bufferIndex:)

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

## Declaration

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

## Parameters

- `functionTable`: An doc://com.apple.metal/documentation/Metal/MTLVisibleFunctionTable instance the command assigns to an entry in the vertex shader argument table for visible function tables.
- `bufferIndex`: An integer that represents the entry in the vertex 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

- [setVertexVisibleFunctionTables(_:bufferRange:)](metal/mtlrendercommandencoder/setvertexvisiblefunctiontables(_:bufferrange:).md)
