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

pub struct FixedSizeDescriptorSetBuilder<'a, R> { /* fields omitted */ }

Prototype of a FixedSizeDescriptorSet.

The template parameter R is an unspecified type that represents the list of resources.

See the docs of FixedSizeDescriptorSetsPool for an example.

Implementations

impl<'a, R> FixedSizeDescriptorSetBuilder<'a, R>[src]

pub fn build(
    self
) -> Result<FixedSizeDescriptorSet<R>, PersistentDescriptorSetBuildError>
[src]

Builds a FixedSizeDescriptorSet from the builder.

pub fn enter_array(
    self
) -> Result<FixedSizeDescriptorSetBuilderArray<'a, R>, PersistentDescriptorSetError>
[src]

Call this function if the next element of the set is an array in order to set the value of each element.

Returns an error if the descriptor is empty.

This function can be called even if the descriptor isn’t an array, and it is valid to enter the “array”, add one element, then leave.

pub fn add_empty(
    self
) -> Result<FixedSizeDescriptorSetBuilder<'a, R>, PersistentDescriptorSetError>
[src]

Skips the current descriptor if it is empty.

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

Binds a buffer as the next descriptor.

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<FixedSizeDescriptorSetBuilder<'a, (R, PersistentDescriptorSetBufView<T>)>, PersistentDescriptorSetError> where
    T: BufferViewRef
[src]

Binds a buffer view as the next descriptor.

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<FixedSizeDescriptorSetBuilder<'a, (R, PersistentDescriptorSetImg<T>)>, PersistentDescriptorSetError> where
    T: ImageViewAbstract
[src]

Binds an image view as the next descriptor.

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<FixedSizeDescriptorSetBuilder<'a, ((R, PersistentDescriptorSetImg<T>), PersistentDescriptorSetSampler)>, PersistentDescriptorSetError> where
    T: ImageViewAbstract
[src]

Binds an image view with a sampler as the next descriptor.

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

Panic

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

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

Binds a sampler as the next descriptor.

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 FixedSizeDescriptorSetBuilder<'a, R> where
    R: RefUnwindSafe

impl<'a, R> Send for FixedSizeDescriptorSetBuilder<'a, R> where
    R: Send

impl<'a, R> Sync for FixedSizeDescriptorSetBuilder<'a, R> where
    R: Sync

impl<'a, R> Unpin for FixedSizeDescriptorSetBuilder<'a, R> where
    R: Unpin

impl<'a, R> !UnwindSafe for FixedSizeDescriptorSetBuilder<'a, R>

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Content for 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]

Returns true if the size is suitable to store a type like this.

pub fn indiv_size() -> usize[src]

Returns the size of an individual element.

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.