Struct vulkano::descriptor_set::persistent::PersistentDescriptorSetBuilderArray [−][src]
pub struct PersistentDescriptorSetBuilderArray<R> { /* fields omitted */ }
Expand description
Same as PersistentDescriptorSetBuilder
, but we’re in an array.
Implementations
pub fn leave_array(
self
) -> Result<PersistentDescriptorSetBuilder<R>, PersistentDescriptorSetError>
pub fn leave_array(
self
) -> Result<PersistentDescriptorSetBuilder<R>, PersistentDescriptorSetError>
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,
pub fn add_buffer<T>(
self,
buffer: T
) -> Result<PersistentDescriptorSetBuilderArray<(R, PersistentDescriptorSetBuf<T>)>, PersistentDescriptorSetError> where
T: BufferAccess,
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,
pub fn add_buffer_view<T>(
self,
view: T
) -> Result<PersistentDescriptorSetBuilderArray<(R, PersistentDescriptorSetBufView<T>)>, PersistentDescriptorSetError> where
T: BufferViewRef,
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: ImageViewAbstract,
pub fn add_image<T>(
self,
image_view: T
) -> Result<PersistentDescriptorSetBuilderArray<(R, PersistentDescriptorSetImg<T>)>, PersistentDescriptorSetError> where
T: ImageViewAbstract,
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: ImageViewAbstract,
pub fn add_sampled_image<T>(
self,
image_view: T,
sampler: Arc<Sampler>
) -> Result<PersistentDescriptorSetBuilderArray<((R, PersistentDescriptorSetImg<T>), PersistentDescriptorSetSampler)>, PersistentDescriptorSetError> where
T: ImageViewAbstract,
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>
pub fn add_sampler(
self,
sampler: Arc<Sampler>
) -> Result<PersistentDescriptorSetBuilderArray<(R, PersistentDescriptorSetSampler)>, PersistentDescriptorSetError>
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
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.