Contents

withUnsafeMutableIndices(_:)

Updates the index buffer synchronously on the CPU.

Declaration

@MainActor func withUnsafeMutableIndices(_ callback: (UnsafeMutableRawBufferPointer) -> Void)

Discussion

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

See Also

Accessing mesh data on the CPU with Swift