Contents

withUnsafeIndices(_:)

Reads the index buffer synchronously on the CPU.

Declaration

@MainActor func withUnsafeIndices(_ callback: (UnsafeRawBufferPointer) -> Void)

Discussion

The buffer is only valid for the lifetime of the callback.

See Also

Accessing mesh data on the CPU with Swift