Contents

setFragmentAccelerationStructure(_:bufferIndex:)

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

Declaration

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

Parameters

  • accelerationStructure:

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

  • bufferIndex:

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

Discussion

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