mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 14:23:32 +00:00
metal: fix query set result copies (#6322)
The NSRange expects length, not end element. See 9bbe74b1d3/src/lib.rs (L51)
This commit is contained in:
parent
8e787eb70a
commit
7074380945
@ -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,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user