mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-30 18:14:18 +01:00
140: Creating buffers with size 0 actually creates them with size 1 r=kvark a=rukai closes https://github.com/gfx-rs/wgpu/issues/135 One concern I have is if the buffer is uninitialized before the call to `self.data.copy_from_slice(slice);` If that is the case, my new `fill_from_slice` implementation will leave memory uninitialized when the user tries to create an empty buffer. Co-authored-by: Rukai <rubickent@gmail.com>