Avoid preparing layers outside physical bounds in iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2025-01-26 03:53:18 +01:00
parent c0db7b8e1f
commit 3428a3d2af
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 13 additions and 33 deletions

View file

@ -302,13 +302,6 @@ impl Pipeline {
}
}
pub fn layer_count(batch: &Batch) -> usize {
batch
.iter()
.filter(|item| matches!(item, Item::Group { .. }))
.count()
}
pub fn prepare(
&mut self,
device: &wgpu::Device,