gfx-rs / wgpu-native

Native WebGPU implementation based on wgpu-core
Apache License 2.0
871 stars 104 forks source link

Buffer mapping example #317

Closed almarklein closed 2 months ago

almarklein commented 11 months ago

Following up on #305 I created an example that demonstrates behavior related to buffer mapping that may or may not be expected.

As an experiment, I wrote this in Python, not via wgpu-py, but only using cffi as an interface. If this works for the other devs, this could be a nice way to quickly produce examples like these, and also interact with the lib interactively (e.g. in a Jupyter notebook). Otherwise I'll translate it to a C example :)