setIntersectionFunctionTables(_:range:)
Encodes references to an array of ray-tracing intersection-function tables into the argument buffer.
Declaration
func setIntersectionFunctionTables(_ intersectionFunctionTables: [(any MTLIntersectionFunctionTable)?], range: Range<Int>)Parameters
- intersectionFunctionTables:
An array of intersection-function tables the method encodes.
- range:
A range of indices within the argument buffer for each element in
intersectionFunctionTables. The values correspond to either the index IDs of declarations in Metal Shading Language (MSL) or the Index property of Mtlargumentdescriptor instances.