<!--
{
  "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/MTLComputeCommandEncoder/setIntersectionFunctionTables:withBufferRange:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLComputeCommandEncoder(im)setIntersectionFunctionTables:withBufferRange:"
  },
  "title" : "setIntersectionFunctionTables:withBufferRange:"
}
-->

# setIntersectionFunctionTables:withBufferRange:

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

```
- (void) setIntersectionFunctionTables:(id<MTLIntersectionFunctionTable> const[]) intersectionFunctionTables withBufferRange:(NSRange) range;
```

## Parameters

`intersectionFunctionTables`

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

`range`

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 `range`.

---

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)