Contents

replaceIndices(using:)

Retrieves a Metal index buffer that you can use to replace the indices of this low-level mesh.

Declaration

@MainActor func replaceIndices(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.

Discussion

The buffer’s contents are in an uninitialized state.

See Also

Accessing mesh data on the GPU with Metal