mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
move same device check in compute_pass_end_impl
This commit is contained in:
parent
7761b5723d
commit
2f7860b6e4
@ -321,10 +321,6 @@ impl Global {
|
||||
);
|
||||
};
|
||||
|
||||
if let Err(e) = query_set.same_device_as(cmd_buf.as_ref()) {
|
||||
return make_err(e.into(), arc_desc);
|
||||
}
|
||||
|
||||
Some(ArcPassTimestampWrites {
|
||||
query_set,
|
||||
beginning_of_pass_write_index: tw.beginning_of_pass_write_index,
|
||||
@ -501,6 +497,10 @@ impl Global {
|
||||
state.tracker.query_sets.set_size(indices.query_sets.size());
|
||||
|
||||
let timestamp_writes = if let Some(tw) = timestamp_writes.take() {
|
||||
tw.query_set
|
||||
.same_device_as(cmd_buf)
|
||||
.map_pass_err(pass_scope)?;
|
||||
|
||||
let query_set = state.tracker.query_sets.insert_single(tw.query_set);
|
||||
|
||||
// Unlike in render passes we can't delay resetting the query sets since
|
||||
|
Loading…
Reference in New Issue
Block a user