Files
FredApps cacf3ebba7 GPU readback: one map callback for both readback paths (#3762)
* 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.
2026-12-04 13:46:18 +01:00
..