setAccelerationStructure(_:index:)
Encodes a reference to an acceleration structure into the argument buffer.
Declaration
func setAccelerationStructure(_ accelerationStructure: (any MTLAccelerationStructure)?, index: Int)Parameters
- accelerationStructure:
An acceleration structure the method encodes.
- index:
The index of an acceleration structure within the argument buffer. The value corresponds to either the index ID of a declaration in Metal Shading Language (MSL) or the Index property of an Mtlargumentdescriptor instance.