[−][src]Struct nannou::vk::descriptor::descriptor_set::PersistentDescriptorSetBuilderArray
Same as PersistentDescriptorSetBuilder
, but we're in an array.
Methods
impl<L, R> PersistentDescriptorSetBuilderArray<L, R> where
L: PipelineLayoutAbstract,
[src]
L: PipelineLayoutAbstract,
pub fn leave_array(
self
) -> Result<PersistentDescriptorSetBuilder<L, R>, PersistentDescriptorSetError>
[src]
self
) -> Result<PersistentDescriptorSetBuilder<L, 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<L, (R, PersistentDescriptorSetBuf<T>)>, PersistentDescriptorSetError> where
T: BufferAccess,
[src]
self,
buffer: T
) -> Result<PersistentDescriptorSetBuilderArray<L, (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 pipeline layout.
pub fn add_buffer_view<T>(
self,
view: T
) -> Result<PersistentDescriptorSetBuilderArray<L, (R, PersistentDescriptorSetBufView<T>)>, PersistentDescriptorSetError> where
T: BufferViewRef,
[src]
self,
view: T
) -> Result<PersistentDescriptorSetBuilderArray<L, (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 pipeline layout.
pub fn add_image<T>(
self,
image_view: T
) -> Result<PersistentDescriptorSetBuilderArray<L, (R, PersistentDescriptorSetImg<T>)>, PersistentDescriptorSetError> where
T: ImageViewAccess,
[src]
self,
image_view: T
) -> Result<PersistentDescriptorSetBuilderArray<L, (R, PersistentDescriptorSetImg<T>)>, PersistentDescriptorSetError> where
T: ImageViewAccess,
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 pipeline layout.
pub fn add_sampled_image<T>(
self,
image_view: T,
sampler: Arc<Sampler>
) -> Result<PersistentDescriptorSetBuilderArray<L, ((R, PersistentDescriptorSetImg<T>), PersistentDescriptorSetSampler)>, PersistentDescriptorSetError> where
T: ImageViewAccess,
[src]
self,
image_view: T,
sampler: Arc<Sampler>
) -> Result<PersistentDescriptorSetBuilderArray<L, ((R, PersistentDescriptorSetImg<T>), PersistentDescriptorSetSampler)>, PersistentDescriptorSetError> where
T: ImageViewAccess,
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 pipeline layout.
pub fn add_sampler(
self,
sampler: Arc<Sampler>
) -> Result<PersistentDescriptorSetBuilderArray<L, (R, PersistentDescriptorSetSampler)>, PersistentDescriptorSetError>
[src]
self,
sampler: Arc<Sampler>
) -> Result<PersistentDescriptorSetBuilderArray<L, (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 pipeline layout.
Auto Trait Implementations
impl<L, R> Send for PersistentDescriptorSetBuilderArray<L, R> where
L: Send,
R: Send,
L: Send,
R: Send,
impl<L, R> Sync for PersistentDescriptorSetBuilderArray<L, R> where
L: Sync,
R: Sync,
L: Sync,
R: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> SafeBorrow<T> for T
[src]
impl<S> FromSample<S> for S
[src]
fn from_sample_(s: S) -> S
[src]
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
[src]
U: FromSample<T>,
fn to_sample_(self) -> U
[src]
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
[src]
T: FromSample<S> + ToSample<S>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.