mirror of
https://github.com/storytold/wgpu.git
synced 2026-12-01 02:24:35 +01:00
553: Fix order of maintenace between submission tracking and buffer mapping. r=kvark a=kvark Fixes https://github.com/gfx-rs/wgpu-rs/issues/237 Logic needs to have the following order: 1. we first wait for the device to finish 2. then we move some tracked resources from per-submission lists into the "ready to destroy" or "ready to map" lists. 3. then we handle mapping, which goes through "ready to map" lists 4. then we destroy everything for realz that needs to be That order got broken with #547 Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>