I wanted to [redesign our entry point interface](https://github.com/Rust-GPU/rust-gpu/issues/449) from scratch anyway for quite some time, to make it easier to use and eliminate soundness holes like this one. The easiest path forward would be some newtype that offers an `unsafe fn write(&self, index: usize, t: T)` function and offload the guarantee of no aliased writes to the end user. But I also wanted to investigate if there was some API that allows you to write to buffers *safely*, even with some limitations in flexibility.
0 commit comments