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

# setIntersectionFunctionTables:withRange:

Encodes references to an array of ray-tracing intersection-function tables into the argument buffer.

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

## Parameters

`intersectionFunctionTables`

An array of intersection-function tables the method encodes.

`range`

A range of indices within the argument buffer for each element in `intersectionFunctionTables`.
The values correspond to either the index IDs of declarations in
Metal Shading Language (MSL) or the [`index`](/documentation/Metal/MTLArgumentDescriptor/index) property
of [`MTLArgumentDescriptor`](/documentation/Metal/MTLArgumentDescriptor) instances.

## Discussion

---

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)