intersectionFunctionTableOffset
Sets the offset that this geometry contributes to determining the intersection function to invoke when a ray intersects it.
Declaration
var intersectionFunctionTableOffset: Int { get set }Discussion
When you perform a ray tracing operation in the Metal Shading Language, and provide the ray intersector object with an instance of MTLIntersectionFunctionTable, Metal adds this offset to the instance offset from structs such as:
The sum of these offsets provides an index into the intersection function table that the ray tracing system uses to retrieve and invoke the function at this index, allowing you to customize the intersection evaluation process.