<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -",
    "macOS: 12.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLRenderCommandEncoder/setTileVisibleFunctionTables(_:bufferRange:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "s:So23MTLRenderCommandEncoderP5MetalE28setTileVisibleFunctionTables_11bufferRangeySaySo010MTLVisibleH5Table_pSgG_SnySiGtF"
  },
  "title" : "setTileVisibleFunctionTables(_:bufferRange:)"
}
-->

# setTileVisibleFunctionTables(_:bufferRange:)

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

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

## Parameters

`functionTables`

An array of [`MTLVisibleFunctionTable`](/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

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

> Note:
> The Objective-C version of this method is ``doc://com.apple.metal/documentation/Metal/MTLRenderCommandEncoder/setTileVisibleFunctionTables:withBufferRange:``.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)