pub fn new(cap: u32, layout: DescriptorSetLayout) -> Self {
        SparseDescriptorsInstance {
            layout,
            set: None,
            upper_bounds: 0,
            indices: HashMap::new(),
            unused: Bits4096::empty(),
            updates: Vec::with_capacity(cap as usize),
        }
    }
/// Returns new empty instance of `SparseDescriptorsInstance`.
Returns new empty instance of `SparseDescriptorsInstance`.
Returns new empty instance of ` SparseDescriptorsInstance ` .
pub fn new(cap: u32, layout: DescriptorSetLayout) -> Self {
        SparseDescriptorsInstance {
            layout,
            set: None,
            upper_bounds: 0,
            indices: HashMap::new(),
            unused: Bits4096::empty(),
            updates: Vec::with_capacity(cap as usize),
        }
    }
pub fn new ( cap : u32 , layout : DescriptorSetLayout ) -> Self { SparseDescriptorsInstance { layout , set : None , upper_bounds : 0 , indices : HashMap :: new ( ) , unused : Bits4096 :: empty ( ) , updates : Vec :: with_capacity ( cap as usize ) , } }
Returns new empty instance of `SparseDescriptorsInstance`.
Returns new empty instance of ` SparseDescriptorsInstance ` .
cap
u32
layout
DescriptorSetLayout