pub fn allocate(&self, layouts: &[VkDescriptorSetLayout]) -> Vec<DescriptorSet> {
        let info = VkDescriptorSetAllocateInfo {
            descriptor_pool: self.pool,
            descriptor_set_count: layouts.len() as _,
            set_layouts: layouts.as_ptr(),
            ..Default::default()
        };

        self.vd
            .allocate_descriptor_sets(&info)
            .unwrap()
            .iter()
            .map(|s| DescriptorSet::from_raw(*s))
            .collect()
    }
/// Allocate some descriptor sets from the pool.
Allocate some descriptor sets from the pool.
Allocate some descriptor sets from the pool .
pub fn allocate(&self, layouts: &[VkDescriptorSetLayout]) -> Vec<DescriptorSet> {
        let info = VkDescriptorSetAllocateInfo {
            descriptor_pool: self.pool,
            descriptor_set_count: layouts.len() as _,
            set_layouts: layouts.as_ptr(),
            ..Default::default()
        };
        self.vd
            .allocate_descriptor_sets(&info)
            .unwrap()
            .iter()
            .map(|s| DescriptorSet::from_raw(*s))
            .collect()
    }
pub fn allocate ( & self , layouts : & [ VkDescriptorSetLayout ] ) -> Vec < DescriptorSet > { let info = VkDescriptorSetAllocateInfo { descriptor_pool : self . pool , descriptor_set_count : layouts . len ( ) as _ , set_layouts : layouts . as_ptr ( ) , .. Default :: default ( ) } ; self . vd . allocate_descriptor_sets ( & info ) . unwrap ( ) . iter ( ) . map ( | s | DescriptorSet :: from_raw ( * s ) ) . collect ( ) }
Allocate some descriptor sets from the pool.
Allocate some descriptor sets from the pool .
&self
layouts
&[VkDescriptorSetLayout]
&self
layouts
&[VkDescriptorSetLayout]