---
title: "setFragmentIntersectionFunctionTables(_:bufferRange:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlrendercommandencoder/setfragmentintersectionfunctiontables(_:bufferrange:)"
---

# setFragmentIntersectionFunctionTables(_:bufferRange:)

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

## Declaration

```swift
func setFragmentIntersectionFunctionTables(_ functionTables: [(any MTLIntersectionFunctionTable)?], bufferRange: Range<Int>)
```

## Parameters

- `functionTables`: An array of doc://com.apple.metal/documentation/Metal/MTLIntersectionFunctionTable instances the command assigns to entries in the fragment shader argument table for intersection function tables.
- `bufferRange`: 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 functionTables.

## Discussion

Discussion By default, the intersection function table at each index is nil. note: The Objective-C version of this method is setFragmentIntersectionFunctionTables:withBufferRange:.

## See Also

### Assigning intersection function tables

- [setFragmentIntersectionFunctionTable(_:bufferIndex:)](metal/mtlrendercommandencoder/setfragmentintersectionfunctiontable(_:bufferindex:).md)
