Contents

setVertexAccelerationStructure(_:bufferIndex:)

Assigns an acceleration structure to an entry in the vertex shader argument table.

Declaration

func setVertexAccelerationStructure(_ accelerationStructure: (any MTLAccelerationStructure)?, bufferIndex: Int)

Parameters

  • accelerationStructure:

    An Mtlaccelerationstructure instance the command assigns to an entry in the vertex shader argument table for acceleration structures.

  • bufferIndex:

    An integer that represents the entry in the vertex shader argument table for acceleration structures that stores a record of accelerationStructure.

Discussion

By default, the acceleration structure at each index is nil.