setAccelerationStructure(_:bufferIndex:)
Binds an acceleration structure to the buffer argument table, allowing functions to access it on the GPU.
Declaration
func setAccelerationStructure(_ accelerationStructure: (any MTLAccelerationStructure)?, bufferIndex: Int)Parameters
- accelerationStructure:
An Mtlaccelerationstructure instance to bind to the argument table.
- bufferIndex:
The index the structure binds to in the argument table.