Trait vulkano::descriptor::descriptor_set::DescriptorSetDesc
source · pub unsafe trait DescriptorSetDesc {
fn num_bindings(&self) -> usize;
fn descriptor(&self, binding: usize) -> Option<DescriptorDesc>;
}
Expand description
Trait for objects that describe the layout of the descriptors of a set.
Required Methods
sourcefn num_bindings(&self) -> usize
fn num_bindings(&self) -> usize
Returns the number of binding slots in the set.
sourcefn descriptor(&self, binding: usize) -> Option<DescriptorDesc>
fn descriptor(&self, binding: usize) -> Option<DescriptorDesc>
Returns a description of a descriptor, or None
if out of range.