<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLRenderCommandEncoder/setFragmentIntersectionFunctionTables:withBufferRange:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLRenderCommandEncoder(im)setFragmentIntersectionFunctionTables:withBufferRange:"
  },
  "title" : "setFragmentIntersectionFunctionTables:withBufferRange:"
}
-->

# setFragmentIntersectionFunctionTables:withBufferRange:

Assigns multiple intersection function tables to a range of entries in the fragment shader argument table.

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

## Parameters

`intersectionFunctionTables`

A pointer to a C array of [`MTLIntersectionFunctionTable`](/documentation/Metal/MTLIntersectionFunctionTable) instances the command assigns to entries in the fragment shader argument table for intersection function tables.

`range`

A span of integers that represent the entries in the fragment shader argument table for intersection function tables. Each entry stores a record of the corresponding element in `intersectionFunctionTables`.

## Discussion

By default, the intersection function table at each index is `nil`.

> Note:
> The Swift version of this method is ``doc://com.apple.metal/documentation/Metal/MTLRenderCommandEncoder/setFragmentIntersectionFunctionTables(_: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)