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]

Returns the layout used to create this descriptor set.

Trait Implementations

impl<R, P> DescriptorSet for SimpleDescriptorSet<R, P> where
    P: DescriptorPool
[src]

Returns the inner UnsafeDescriptorSet.

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.

impl<R, P> DescriptorSetDesc for SimpleDescriptorSet<R, P> where
    P: DescriptorPool
[src]

Returns the number of binding slots in the set.

Returns a description of a descriptor, or None if out of range.