[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:
Teoxoy authored and teoxoy committed 2026-06-25 18:47:04 +02:00
1 parent 47e4be559d
commit a2f878f0dd
1 file changed
+1 -8
+1 -8
View File
@@ -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,