---
title: "makeIntersectionFunctionTable(descriptor:stage:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlrenderpipelinestate/makeintersectionfunctiontable(descriptor:stage:)"
---

# makeIntersectionFunctionTable(descriptor:stage:)

Creates a new intersection function table.

## Declaration

```swift
func makeIntersectionFunctionTable(descriptor: MTLIntersectionFunctionTableDescriptor, stage: MTLRenderStages) -> (any MTLIntersectionFunctionTable)?
```

## Parameters

- `descriptor`: An doc://com.apple.metal/documentation/Metal/MTLIntersectionFunctionTableDescriptor instance that configures the visible function table the method creates.
- `stage`: An doc://com.apple.metal/documentation/Metal/MTLRenderStages instance that represents the render pass stage the intersection function table applies to.

## See Also

### Creating function handles and tables

- [functionHandle(function:stage:)](metal/mtlrenderpipelinestate/functionhandle(function:stage:)-7uvul.md)
- [makeVisibleFunctionTable(descriptor:stage:)](metal/mtlrenderpipelinestate/makevisiblefunctiontable(descriptor:stage:).md)
