<!--
{
  "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/MTLArgumentEncoder/setIntersectionFunctionTables(_:range:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "s:So18MTLArgumentEncoderP5MetalE29setIntersectionFunctionTables_5rangeySaySo015MTLIntersectionF5Table_pSgG_SnySiGtF"
  },
  "title" : "setIntersectionFunctionTables(_:range:)"
}
-->

# setIntersectionFunctionTables(_:range:)

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

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

## 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.

---

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)