mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
[metal] remove impl of reset_queries
Setting the slots to 0 for occlusion query sets is not necessary since wgpu-core keeps track of slot initialization state.
This commit is contained in:
1 parent
47e4be559d
commit
a2f878f0dd
1 file changed
+1
-8
@@ -811,14 +811,7 @@ impl crate::CommandEncoder for super::CommandEncoder {
|
||||
};
|
||||
}
|
||||
|
||||
unsafe fn reset_queries(&mut self, set: &super::QuerySet, range: Range<u32>) {
|
||||
let encoder = self.enter_blit();
|
||||
let raw_range = NSRange {
|
||||
location: range.start as usize * crate::QUERY_SIZE as usize,
|
||||
length: (range.end - range.start) as usize * crate::QUERY_SIZE as usize,
|
||||
};
|
||||
encoder.fillBuffer_range_value(&set.raw_buffer, raw_range, 0);
|
||||
}
|
||||
unsafe fn reset_queries(&mut self, _set: &super::QuerySet, _range: Range<u32>) {}
|
||||
|
||||
unsafe fn copy_query_results(
|
||||
&mut self,
|
||||
|
||||
Reference in new issue
Block a user