Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DO NOT MERGE: debugging
Browse files Browse the repository at this point in the history
ErichDonGubler committed Nov 21, 2024
1 parent e524930 commit 64114b4
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions wgpu-core/src/command/compute.rs
Original file line number Diff line number Diff line change
@@ -576,6 +576,7 @@ impl Global {
query_index,
} => {
let scope = PassErrorScope::WriteTimestamp;
log::warn!("whaddup");
write_timestamp(&mut state, cmd_buf, query_set, query_index)
.map_pass_err(scope)?;
}
@@ -1315,6 +1316,7 @@ impl Global {
let hub = &self.hub;
let query_set = hub.query_sets.get(query_set_id).get().map_pass_err(scope)?;

log::warn!("ofrick, lezduit");
base.commands.push(ArcComputeCommand::WriteTimestamp {
query_set,
query_index,
2 changes: 1 addition & 1 deletion wgpu-core/src/command/query.rs
Original file line number Diff line number Diff line change
@@ -183,7 +183,7 @@ impl QuerySet {
});
}

if query_index >= self.desc.count {
if dbg!(query_index) >= dbg!(self.desc.count) {
return Err(QueryUseError::OutOfBounds {
query_index,
query_set_size: self.desc.count,

0 comments on commit 64114b4

Please sign in to comment.