---
title: "setOpaqueTriangleIntersectionFunction(signature:index:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlintersectionfunctiontable/setopaquetriangleintersectionfunction(signature:index:)"
---

# setOpaqueTriangleIntersectionFunction(signature:index:)

Sets an entry in the intersection table to point to a system-defined opaque triangle intersection function.

## Declaration

```swift
func setOpaqueTriangleIntersectionFunction(signature: MTLIntersectionFunctionSignature, index: Int)
```

## Parameters

- `signature`: The signature of the function.
- `index`: The index in the table to change.

## See Also

### Specifying opaque triangle intersection testing

- [setOpaqueTriangleIntersectionFunction(signature:range:)](metal/mtlintersectionfunctiontable/setopaquetriangleintersectionfunction(signature:range:).md)
