replaceUnsafeMutableIndices(_:)
Replaces the index buffer synchronously on the CPU.
Declaration
@MainActor func replaceUnsafeMutableIndices(_ callback: (UnsafeMutableRawBufferPointer) -> Void)Discussion
The buffer’s contents are unspecified, and it is the caller’s responsibility to populate the buffer with valid data. The buffer is only valid for the lifetime of the callback.