Contents

setBuffer(_:offset:index:)

Sets a buffer for the intersection functions.

Declaration

func setBuffer(_ buffer: (any MTLBuffer)?, offset: Int, index: Int)

Parameters

  • buffer:

    The Mtlbuffer object to set in the argument table.

  • offset:

    Where the data begins, in bytes, from the start of the buffer.

  • index:

    An index in the function table’s buffer argument table.

See Also

Specifying arguments for intersection functions