Avoid preparing layers outside physical bounds in iced_wgpu
This commit is contained in:
parent
c0db7b8e1f
commit
3428a3d2af
3 changed files with 13 additions and 33 deletions
|
|
@ -177,13 +177,6 @@ impl Pipeline {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn layer_count(items: &[Item]) -> usize {
|
||||
items
|
||||
.iter()
|
||||
.filter(|item| matches!(item, Item::Group { .. }))
|
||||
.count()
|
||||
}
|
||||
|
||||
pub fn prepare(
|
||||
&mut self,
|
||||
device: &wgpu::Device,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue