pub unsafe trait DescriptorSetsCollection {
fn into_vec(self) -> Vec<Box<dyn DescriptorSet + Send + Sync>>;
fn num_bindings_in_set(&self, set: usize) -> Option<usize>;
fn descriptor(&self, set: usize, binding: usize) -> Option<DescriptorDesc>;
}
Expand description
A collection of descriptor set objects.
Required Methods
fn into_vec(self) -> Vec<Box<dyn DescriptorSet + Send + Sync>>
sourcefn num_bindings_in_set(&self, set: usize) -> Option<usize>
fn num_bindings_in_set(&self, set: usize) -> Option<usize>
Returns the number of descriptors in the set. Includes possibly empty descriptors.
Returns None
if the set is out of range.
sourcefn descriptor(&self, set: usize, binding: usize) -> Option<DescriptorDesc>
fn descriptor(&self, set: usize, binding: usize) -> Option<DescriptorDesc>
Returns the descriptor for the given binding of the given set.
Returns None
if out of range.