---
title: "setFragmentIntersectionFunctionTables:withBufferRange:"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlrendercommandencoder/setfragmentintersectionfunctiontables:withbufferrange:"
---

# setFragmentIntersectionFunctionTables:withBufferRange:

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

## Declaration

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

## Parameters

- `intersectionFunctionTables`: A pointer to a C 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.
- `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

Discussion By default, the intersection function table at each index is nil. note: The Swift version of this method is setFragmentIntersectionFunctionTables(_:bufferRange:).

## See Also

### Assigning intersection function tables

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