Trait vulkano::descriptor::descriptor_set::collection::DescriptorSetsCollection [] [src]

pub unsafe trait DescriptorSetsCollection {
    fn num_sets(&self) -> usize;
    fn descriptor_set(&self, set: usize) -> Option<&UnsafeDescriptorSet>;
    fn num_bindings_in_set(&self, set: usize) -> Option<usize>;
    fn descriptor(&self, set: usize, binding: usize) -> Option<DescriptorDesc>;
    fn buffers_list<'a>(&'a self) -> Box<Iterator<Item = &'a BufferAccess> + 'a>;
    fn images_list<'a>(&'a self) -> Box<Iterator<Item = &'a ImageAccess> + 'a>;
}

A collection of descriptor set objects.

Required Methods

Returns the number of sets in the collection. Includes possibly empty sets.

In other words, this should be equal to the highest set number plus one.

Returns the descriptor set with the given id. Returns None if the set is empty.

Returns the number of descriptors in the set. Includes possibly empty descriptors.

Returns None if the set is out of range.

Returns the descriptor for the given binding of the given set.

Returns None if out of range.

Returns the list of buffers used by this descriptor set. Includes buffer views.

Returns the list of images used by this descriptor set. Includes image views.

Implementors