Add comment

This commit is contained in:
Maximilian Ammann 2022-01-03 15:52:05 +01:00
parent 112dcb2a2e
commit 8d9f6341fa

View File

@ -92,6 +92,7 @@ impl<Q: Queue<B>, B, V: bytemuck::Pod, I: bytemuck::Pod> BufferPool<Q, B, V, I>
new_indices
);
// write_buffer() is the preferred method for WASM: https://toji.github.io/webgpu-best-practices/buffer-uploads.html#when-in-doubt-writebuffer
queue.write_buffer(
&self.vertices.inner,
maybe_entry.vertices.start,