pub fn allocate_one(&self) -> VkResult<DescriptorSet> {
        let info = VkDescriptorSetAllocateInfo {
            descriptor_pool: self.pool,
            descriptor_set_count: 1,
            set_layouts: &self.layouts[0].object(),
            ..Default::default()
        };

        self.vd
            .allocate_descriptor_set(&info)
            .map(|s| DescriptorSet::from_raw(s))
    }
// FIXME: This function always uses the first layout in `self.layout`.
/// Allocate one descriptor set from this pool.
This function always uses the first layout in `self.layout`.
Allocate one descriptor set from this pool.
This function always uses the first layout in ` self . layout ` . Allocate one descriptor set from this pool .
pub fn allocate_one(&self) -> VkResult<DescriptorSet> {
        let info = VkDescriptorSetAllocateInfo {
            descriptor_pool: self.pool,
            descriptor_set_count: 1,
            set_layouts: &self.layouts[0].object(),
            ..Default::default()
        };
        self.vd
            .allocate_descriptor_set(&info)
            .map(|s| DescriptorSet::from_raw(s))
    }
pub fn allocate_one ( & self ) -> VkResult < DescriptorSet > { let info = VkDescriptorSetAllocateInfo { descriptor_pool : self . pool , descriptor_set_count : 1 , set_layouts : & self . layouts [ 0 ] . object ( ) , .. Default :: default ( ) } ; self . vd . allocate_descriptor_set ( & info ) . map ( | s | DescriptorSet :: from_raw ( s ) ) }
FIXME: This function always uses the first layout in `self.layout`.
FIXME : This function always uses the first layout in ` self . layout ` .
&self
&self