Skip to content

Commit

Permalink
metal: fix query set result copies (gfx-rs#6322)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark authored Sep 25, 2024
1 parent 8e787eb commit 7074380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-hal/src/metal/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ impl crate::CommandEncoder for super::CommandEncoder {
wgt::QueryType::Timestamp => {
encoder.resolve_counters(
set.counter_sample_buffer.as_ref().unwrap(),
metal::NSRange::new(range.start as u64, range.end as u64),
metal::NSRange::new(range.start as u64, (range.end - range.start) as u64),
&buffer.raw,
offset,
);
Expand Down

0 comments on commit 7074380

Please sign in to comment.