Use iterator for pool sizes
This commit is contained in:
parent
d765b97377
commit
73834e4013
1 changed files with 6 additions and 6 deletions
|
@ -72,14 +72,14 @@ impl DescriptorSetLayoutBuilder {
|
||||||
|
|
||||||
let descriptor_set_layout = device.create_descriptor_set_layout(&descriptor_set_ci)?;
|
let descriptor_set_layout = device.create_descriptor_set_layout(&descriptor_set_ci)?;
|
||||||
|
|
||||||
let mut pool_sizes = Vec::new();
|
let pool_sizes = self
|
||||||
|
.layout_bindings
|
||||||
for layout_binding in &self.layout_bindings {
|
.into_iter()
|
||||||
pool_sizes.push(VkDescriptorPoolSize {
|
.map(|layout_binding| VkDescriptorPoolSize {
|
||||||
ty: layout_binding.descriptorType,
|
ty: layout_binding.descriptorType,
|
||||||
descriptorCount: layout_binding.descriptorCount,
|
descriptorCount: layout_binding.descriptorCount,
|
||||||
});
|
})
|
||||||
}
|
.collect();
|
||||||
|
|
||||||
Ok(Arc::new(DescriptorSetLayout {
|
Ok(Arc::new(DescriptorSetLayout {
|
||||||
device,
|
device,
|
||||||
|
|
Loading…
Reference in a new issue