mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Assert on a mapping buffer being used
This commit is contained in:
@@ -1144,7 +1144,9 @@ pub extern "C" fn wgpu_queue_submit(
|
||||
|
||||
// update submission IDs
|
||||
for id in comb.trackers.buffers.used() {
|
||||
buffer_guard[id]
|
||||
let buffer = &buffer_guard[id];
|
||||
assert!(buffer.pending_map_operation.is_none());
|
||||
buffer
|
||||
.life_guard
|
||||
.submission_index
|
||||
.store(submit_index, Ordering::Release);
|
||||
|
||||
Reference in New Issue
Block a user