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

pub struct PersistentDescriptorSetBuilderArray<R> { /* fields omitted */ }

Same as PersistentDescriptorSetBuilder, but we're in an array.

Methods

impl<R> PersistentDescriptorSetBuilderArray<R>[src]

pub fn leave_array(
    self
) -> Result<PersistentDescriptorSetBuilder<R>, PersistentDescriptorSetError>
[src]

Leaves the array. Call this once you added all the elements of the array.

pub fn add_buffer<T>(
    self,
    buffer: T
) -> Result<PersistentDescriptorSetBuilderArray<(R, PersistentDescriptorSetBuf<T>)>, PersistentDescriptorSetError> where
    T: BufferAccess
[src]

Binds a buffer as the next element in the array.

An error is returned if the buffer isn't compatible with the descriptor.

Panic

Panics if the buffer doesn't have the same device as the descriptor set layout.

pub fn add_buffer_view<T>(
    self,
    view: T
) -> Result<PersistentDescriptorSetBuilderArray<(R, PersistentDescriptorSetBufView<T>)>, PersistentDescriptorSetError> where
    T: BufferViewRef
[src]

Binds a buffer view as the next element in the array.

An error is returned if the buffer isn't compatible with the descriptor.

Panic

Panics if the buffer view doesn't have the same device as the descriptor set layout.

pub fn add_image<T>(
    self,
    image_view: T
) -> Result<PersistentDescriptorSetBuilderArray<(R, PersistentDescriptorSetImg<T>)>, PersistentDescriptorSetError> where
    T: ImageViewAccess
[src]

Binds an image view as the next element in the array.

An error is returned if the image view isn't compatible with the descriptor.

Panic

Panics if the image view doesn't have the same device as the descriptor set layout.

pub fn add_sampled_image<T>(
    self,
    image_view: T,
    sampler: Arc<Sampler>
) -> Result<PersistentDescriptorSetBuilderArray<((R, PersistentDescriptorSetImg<T>), PersistentDescriptorSetSampler)>, PersistentDescriptorSetError> where
    T: ImageViewAccess
[src]

Binds an image view with a sampler as the next element in the array.

An error is returned if the image view isn't compatible with the descriptor.

Panic

Panics if the image or the sampler doesn't have the same device as the descriptor set layout.

pub fn add_sampler(
    self,
    sampler: Arc<Sampler>
) -> Result<PersistentDescriptorSetBuilderArray<(R, PersistentDescriptorSetSampler)>, PersistentDescriptorSetError>
[src]

Binds a sampler as the next element in the array.

An error is returned if the sampler isn't compatible with the descriptor.

Panic

Panics if the sampler doesn't have the same device as the descriptor set layout.

Auto Trait Implementations

impl<R> RefUnwindSafe for PersistentDescriptorSetBuilderArray<R> where
    R: RefUnwindSafe

impl<R> Send for PersistentDescriptorSetBuilderArray<R> where
    R: Send

impl<R> Sync for PersistentDescriptorSetBuilderArray<R> where
    R: Sync

impl<R> Unpin for PersistentDescriptorSetBuilderArray<R> where
    R: Unpin

impl<R> UnwindSafe for PersistentDescriptorSetBuilderArray<R> where
    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> 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.