mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-12 06:52:38 +00:00
![]() 722: Refactor tracking of device last completed submission r=kvark a=kvark **Connections** Fixes https://github.com/gfx-rs/wgpu-rs/issues/358 **Description** We used to track the next submission index in `device.life_guard.submission_index` atomic. This PR changes that to point to the last *done* submission, and also introduces a non-atomic field to keep track of the current/next submission. This allows us to avoid waiting on the frame semaphore on presentation if the relevant submission is done by then. **Testing** Not tested! Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |