readIndices(using:)
Retrieves the Metal index buffer for GPU reading.
Declaration
@MainActor func readIndices(using commandBuffer: any MTLCommandBuffer) -> any MTLBufferParameters
- commandBuffer:
The Mtlcommandbuffer you intend to use for reading. RealityKit waits for the command buffer to complete before discarding the buffer.