Contents

setIntersectionFunctionTable(_:index:)

Encodes a reference to a ray-tracing intersection-function table into the argument buffer.

Declaration

func setIntersectionFunctionTable(_ intersectionFunctionTable: (any MTLIntersectionFunctionTable)?, index: Int)

Parameters

  • intersectionFunctionTable:

    An intersection-function table the method encodes.

  • index:

    An index of an intersection-function table 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.

See Also

Encoding function tables