Struct vulkano::descriptor::descriptor_set::SimpleDescriptorSet
[−]
[src]
pub struct SimpleDescriptorSet<R, P = Arc<StdDescriptorPool>> where
P: DescriptorPool, { /* fields omitted */ }
A simple immutable descriptor set.
It is named "simple" because creating such a descriptor set allocates from a pool, and because it can't be modified once created. It is sufficient for most usages, but in some situations you may wish to use something more optimized instead.
In order to build a SimpleDescriptorSet
, you need to use a SimpleDescriptorSetBuilder
. But
the easiest way is to use the simple_descriptor_set!
macro.
The template parameter of the SimpleDescriptorSet
is very complex, and you shouldn't try to
express it explicitely. If you want to store your descriptor set in a struct or in a Vec
for
example, you are encouraged to turn SimpleDescriptorSet
into a Box<DescriptorSet>
or a
Arc<DescriptorSet>
.
Example
Methods
impl<R, P> SimpleDescriptorSet<R, P> where
P: DescriptorPool,
[src]
P: DescriptorPool,
fn set_layout(&self) -> &Arc<UnsafeDescriptorSetLayout>
Returns the layout used to create this descriptor set.
Trait Implementations
impl<R, P> DescriptorSet for SimpleDescriptorSet<R, P> where
P: DescriptorPool,
[src]
P: DescriptorPool,
fn inner(&self) -> &UnsafeDescriptorSet
Returns the inner UnsafeDescriptorSet
.
fn buffers_list<'a>(&'a self) -> Box<Iterator<Item = &'a BufferAccess> + 'a>
Returns the list of buffers used by this descriptor set. Includes buffer views.
fn images_list<'a>(&'a self) -> Box<Iterator<Item = &'a ImageAccess> + 'a>
Returns the list of images used by this descriptor set. Includes image views.
impl<R, P> DescriptorSetDesc for SimpleDescriptorSet<R, P> where
P: DescriptorPool,
[src]
P: DescriptorPool,
fn num_bindings(&self) -> usize
Returns the number of binding slots in the set.
fn descriptor(&self, binding: usize) -> Option<DescriptorDesc>
Returns a description of a descriptor, or None
if out of range.