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

# setVertexIntersectionFunctionTables:withBufferRange:

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

## Declaration

```occ
- (void) setVertexIntersectionFunctionTables:(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 vertex shader argument table for intersection function tables.
- `range`: A span of integers that represent the entries in the vertex 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 setVertexIntersectionFunctionTables(_:bufferRange:).

## See Also

### Assigning intersection function tables

- [setVertexIntersectionFunctionTable(_:bufferIndex:)](metal/mtlrendercommandencoder/setvertexintersectionfunctiontable(_:bufferindex:).md)
