[][src]Struct vulkano::descriptor::descriptor_set::PersistentDescriptorSet

pub struct PersistentDescriptorSet<R, P = StdDescriptorPoolAlloc> { /* fields omitted */ }

An immutable descriptor set that is expected to be long-lived.

Creating a persistent descriptor set allocates from a pool, and can't be modified once created. You are therefore encouraged to create them at initialization and not the during performance-critical paths.

Note: You can control of the pool that is used to create the descriptor set, if you wish so. By creating a implementation of the DescriptorPool trait that doesn't perform any actual allocation, you can skip this allocation and make it acceptable to use a persistent descriptor set in performance-critical paths..

The template parameter of the PersistentDescriptorSet is complex, and you shouldn't try to express it explicitly. If you want to store your descriptor set in a struct or in a Vec for example, you are encouraged to turn the PersistentDescriptorSet into a Box<DescriptorSet> or a Arc<DescriptorSet>.

Example

Methods

impl PersistentDescriptorSet<()>[src]

pub fn start(
    layout: Arc<UnsafeDescriptorSetLayout>
) -> PersistentDescriptorSetBuilder<()>
[src]

Starts the process of building a PersistentDescriptorSet. Returns a builder.

Panic

  • Panics if the set id is out of range.

Trait Implementations

impl<R, P> DescriptorSet for PersistentDescriptorSet<R, P> where
    P: DescriptorPoolAlloc,
    R: PersistentDescriptorSetResources, 
[src]

impl<R, P> DescriptorSetDesc for PersistentDescriptorSet<R, P>[src]

impl<R, P> DeviceOwned for PersistentDescriptorSet<R, P>[src]

impl<R, P> Eq for PersistentDescriptorSet<R, P> where
    P: DescriptorPoolAlloc,
    R: PersistentDescriptorSetResources, 
[src]

impl<R, P> Hash for PersistentDescriptorSet<R, P> where
    P: DescriptorPoolAlloc,
    R: PersistentDescriptorSetResources, 
[src]

impl<R, P> PartialEq<PersistentDescriptorSet<R, P>> for PersistentDescriptorSet<R, P> where
    P: DescriptorPoolAlloc,
    R: PersistentDescriptorSetResources, 
[src]

Auto Trait Implementations

impl<R, P> RefUnwindSafe for PersistentDescriptorSet<R, P> where
    P: RefUnwindSafe,
    R: RefUnwindSafe

impl<R, P> Send for PersistentDescriptorSet<R, P> where
    P: Send,
    R: Send

impl<R, P> Sync for PersistentDescriptorSet<R, P> where
    P: Sync,
    R: Sync

impl<R, P> Unpin for PersistentDescriptorSet<R, P> where
    P: Unpin,
    R: Unpin

impl<R, P> UnwindSafe for PersistentDescriptorSet<R, P> where
    P: UnwindSafe,
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

impl<T> DescriptorSet for T where
    T: SafeDeref,
    <T as Deref>::Target: DescriptorSet
[src]

impl<T> DescriptorSetDesc for T where
    T: SafeDeref,
    <T as Deref>::Target: DescriptorSetDesc
[src]

impl<T> DescriptorSetsCollection for T where
    T: DescriptorSet + Send + Sync + 'static, 
[src]

impl<T> DeviceOwned for T where
    T: Deref,
    <T as Deref>::Target: DeviceOwned
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.