Contents

setMeshBuffers:offsets:withRange:

Assigns multiple buffers to a range of entries in the mesh shader argument table.

Declaration

- (void) setMeshBuffers:(id<MTLBuffer> const[]) buffers offsets:(const NSUInteger[]) offsets withRange:(NSRange) range;

Parameters

  • buffers:

    A pointer to a C array of Mtlbuffer instances the command assigns to entries in the mesh shader argument table for buffers.

  • offsets:

    A pointer to a C array of unsigned integers. Each element represents the location, in bytes, from the start of the corresponding Mtlbuffer element in buffers where the mesh shader argument data begins.

    See the Metal Feature Set Tables to check for offset alignment requirements for buffers in device and constant address space.

  • range:

    A span of integers that represent the entries in the mesh shader argument table for buffers. Each entry stores a record of the corresponding element in buffers and offsets.

Discussion

By default, the texture at each index is nil.

See Also

Assigning buffers for mesh shaders