Struct vulkano::descriptor::descriptor_set::FixedSizeDescriptorSetBuilderArray [−][src]
pub struct FixedSizeDescriptorSetBuilderArray<'a, R> { /* fields omitted */ }
Same as FixedSizeDescriptorSetBuilder
, but we’re in an array.
Implementations
impl<'a, R> FixedSizeDescriptorSetBuilderArray<'a, R>
[src]
impl<'a, R> FixedSizeDescriptorSetBuilderArray<'a, R>
[src]pub fn leave_array(
self
) -> Result<FixedSizeDescriptorSetBuilder<'a, R>, PersistentDescriptorSetError>
[src]
pub fn leave_array(
self
) -> Result<FixedSizeDescriptorSetBuilder<'a, 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<FixedSizeDescriptorSetBuilderArray<'a, (R, PersistentDescriptorSetBuf<T>)>, PersistentDescriptorSetError> where
T: BufferAccess,
[src]
pub fn add_buffer<T>(
self,
buffer: T
) -> Result<FixedSizeDescriptorSetBuilderArray<'a, (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<FixedSizeDescriptorSetBuilderArray<'a, (R, PersistentDescriptorSetBufView<T>)>, PersistentDescriptorSetError> where
T: BufferViewRef,
[src]
pub fn add_buffer_view<T>(
self,
view: T
) -> Result<FixedSizeDescriptorSetBuilderArray<'a, (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<FixedSizeDescriptorSetBuilderArray<'a, (R, PersistentDescriptorSetImg<T>)>, PersistentDescriptorSetError> where
T: ImageViewAbstract,
[src]
pub fn add_image<T>(
self,
image_view: T
) -> Result<FixedSizeDescriptorSetBuilderArray<'a, (R, PersistentDescriptorSetImg<T>)>, PersistentDescriptorSetError> where
T: ImageViewAbstract,
[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<FixedSizeDescriptorSetBuilderArray<'a, ((R, PersistentDescriptorSetImg<T>), PersistentDescriptorSetSampler)>, PersistentDescriptorSetError> where
T: ImageViewAbstract,
[src]
pub fn add_sampled_image<T>(
self,
image_view: T,
sampler: Arc<Sampler>
) -> Result<FixedSizeDescriptorSetBuilderArray<'a, ((R, PersistentDescriptorSetImg<T>), PersistentDescriptorSetSampler)>, PersistentDescriptorSetError> where
T: ImageViewAbstract,
[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<FixedSizeDescriptorSetBuilderArray<'a, (R, PersistentDescriptorSetSampler)>, PersistentDescriptorSetError>
[src]
pub fn add_sampler(
self,
sampler: Arc<Sampler>
) -> Result<FixedSizeDescriptorSetBuilderArray<'a, (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<'a, R> RefUnwindSafe for FixedSizeDescriptorSetBuilderArray<'a, R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<'a, R> Send for FixedSizeDescriptorSetBuilderArray<'a, R> where
R: Send,
R: Send,
impl<'a, R> Sync for FixedSizeDescriptorSetBuilderArray<'a, R> where
R: Sync,
R: Sync,
impl<'a, R> Unpin for FixedSizeDescriptorSetBuilderArray<'a, R> where
R: Unpin,
R: Unpin,
impl<'a, R> !UnwindSafe for FixedSizeDescriptorSetBuilderArray<'a, R>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(usize) -> bool
[src]
pub fn is_size_suitable(usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.