Contents

readIndices(commandBuffer:)

Retrieves the Metal index buffer for GPU reading.

Declaration

final func readIndices(commandBuffer: (any MTLCommandBuffer)?) -> any MTLBuffer

Parameters

  • commandBuffer:

    The command buffer using this buffer, or nil to skip synchronization.

Return Value

The underlying MTLBuffer for reading.

Discussion

The renderer waits for the command buffer to complete before discarding the buffer.

See Also

Accessing index data