Delegate layer_count logic to primitive pipelines
This commit is contained in:
parent
c90d153976
commit
2c733d96ac
3 changed files with 17 additions and 12 deletions
|
|
@ -302,6 +302,13 @@ 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