readIndices(commandBuffer:)
Retrieves the Metal index buffer for GPU reading.
Declaration
final func readIndices(commandBuffer: (any MTLCommandBuffer)?) -> any MTLBufferParameters
- commandBuffer:
The command buffer using this buffer, or
nilto skip synchronization.
Return Value
The underlying MTLBuffer for reading.
Discussion
The renderer waits for the command buffer to complete before discarding the buffer.