mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 07:51:08 +01:00
This will allow using it in tests of wgpu resource management code that does not actually require a backend. * `enumerate_adapters()` returns an adapter instead of failing. * `open()` returns a device instead of failing. * `create_buffer()` allocates actual memory. * `map_buffer()` actually provides access to that memory. * `clear_buffer()` actually clears the buffer. * `copy_buffer_to_buffer()` actually copies data. * Fences actually work (trivially, because all operations are synchronous). Future work could include implementing texture copies, timestamp queries, and the clearing part of render passes.