Skip to content

Commit 64114b4

Browse files
DO NOT MERGE: debugging
1 parent e524930 commit 64114b4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

wgpu-core/src/command/compute.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ impl Global {
576576
query_index,
577577
} => {
578578
let scope = PassErrorScope::WriteTimestamp;
579+
log::warn!("whaddup");
579580
write_timestamp(&mut state, cmd_buf, query_set, query_index)
580581
.map_pass_err(scope)?;
581582
}
@@ -1315,6 +1316,7 @@ impl Global {
13151316
let hub = &self.hub;
13161317
let query_set = hub.query_sets.get(query_set_id).get().map_pass_err(scope)?;
13171318

1319+
log::warn!("ofrick, lezduit");
13181320
base.commands.push(ArcComputeCommand::WriteTimestamp {
13191321
query_set,
13201322
query_index,

wgpu-core/src/command/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ impl QuerySet {
183183
});
184184
}
185185

186-
if query_index >= self.desc.count {
186+
if dbg!(query_index) >= dbg!(self.desc.count) {
187187
return Err(QueryUseError::OutOfBounds {
188188
query_index,
189189
query_set_size: self.desc.count,

0 commit comments

Comments
 (0)