mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
993293f709
127: Track async mapping properly r=grovesNL,swiftcoder a=kvark Fixes #117, fixes #95, fixes #132 The change can be logically split into 3 parts: 1. when `ActiveSubmission` is retired, we now move the mapped buffers into the "ready to map" vector. This was the missing bit that caused mapping to not work previously. 2. mapping callbacks in Rust wrapper are refactored and they `unmap()` automatically now on users behalf 3. we wait for idle before destroying the device, which allows us to process all the pending callbacks. This fix gets rid of the dummy submission our compute example used to do. Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com> Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com> |
||
---|---|---|
.. | ||
data | ||
hello_compute_rust | ||
hello_triangle_c | ||
hello_triangle_rust | ||
Cargo.toml | ||
vk_layer_settings.txt |