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
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue