<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLVisibleFunctionTable",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLVisibleFunctionTable"
  },
  "title" : "MTLVisibleFunctionTable"
}
-->

# MTLVisibleFunctionTable

A table of shader functions visible to your app that you can pass into compute commands to customize the behavior of a shader.

```
protocol MTLVisibleFunctionTable : MTLResource
```

## Topics

### Setting a table entry

[`setFunction(_:index:)`](/documentation/Metal/MTLVisibleFunctionTable/setFunction(_:index:))

Sets a table entry to point to a callable function.

[`setFunctions(_:range:)`](/documentation/Metal/MTLVisibleFunctionTable/setFunctions(_:range:))

Sets a range of table entries to point to an array of callable functions.

[`setFunctions:withRange:`](/documentation/Metal/MTLVisibleFunctionTable/setFunctions:withRange:)

Sets a range of table entries to point to an array of callable functions.



---

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)