Contents

readIndices(using:)

Retrieves the Metal index buffer for GPU reading.

Declaration

@MainActor func readIndices(using commandBuffer: any MTLCommandBuffer) -> any MTLBuffer

Parameters

  • commandBuffer:

    The Mtlcommandbuffer you intend to use for reading. RealityKit waits for the command buffer to complete before discarding the buffer.

See Also

Accessing mesh data on the GPU with Metal