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

# setIntersectionFunctionTables(_:bufferRange:)

Binds multiple intersection function tables to the buffer argument table, allowing you to call their functions on the GPU.

```
func setIntersectionFunctionTables(_ intersectionFunctionTables: [(any MTLIntersectionFunctionTable)?], bufferRange: Range<Int>)
```

## Parameters

`intersectionFunctionTables`

An array of [`MTLIntersectionFunctionTable`](/documentation/Metal/MTLIntersectionFunctionTable) instances to bind.

`bufferRange`

The argument buffer table indices to bind each of the `intersectionFunctionTables` to, in the order they appear.

## Discussion> Warning:
> This method requires that the number of instances in `visibleFunctionTables` be the same as the length of `bufferRange`.

---

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)