mirror of
https://github.com/storytold/effectcraft.git
synced 2026-12-04 16:01:18 -05:00
cacf3ebba7
* refactor(gpu): share the readback map callback between both readback paths map_readback and read_mapped carried the same failed/cancelled/timed-out handling around map_async. One map_for_read helper now owns that and the Mapping guard; each path only supplies what to do once mapped. * test(gpu): drive every map callback branch without a GPU The map_async callback's branches (failed map, map a timeout already cancelled, nobody waiting any more, mapped) only ran on a real device, and hosted CI never fails a map. finish_map in readback.rs now holds that logic, apart from wgpu, and four unit tests cover each branch.