forked from gfx-rs/wgpu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Allocate queue submission indices at the last minute.
As of gfx-rs#5976, we no longer mark resources with the index of the latest queue submission at which they were used, so in `wgpu_core::Global::queue_submit`, rather than allocating a new submission index from `Device::active_submission_index` before processing all the command buffers, allocate it afterwards. This shrinks the criticial section between submission index allocation and actual submission, making gfx-rs#5978 easier to address.
- Loading branch information
Showing
1 changed file
with
25 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters