[−][src]Struct vulkano::descriptor::descriptor_set::FixedSizeDescriptorSetBuilder
Prototype of a FixedSizeDescriptorSet
.
The template parameter L
is the pipeline layout to use, and 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, L, R> FixedSizeDescriptorSetBuilder<'a, L, R> where
L: PipelineLayoutAbstract,
[src]
L: PipelineLayoutAbstract,
pub fn build(
self
) -> Result<FixedSizeDescriptorSet<L, R>, PersistentDescriptorSetBuildError>
[src]
self
) -> Result<FixedSizeDescriptorSet<L, R>, PersistentDescriptorSetBuildError>
Builds a FixedSizeDescriptorSet
from the builder.
pub fn enter_array(
self
) -> Result<FixedSizeDescriptorSetBuilderArray<'a, L, R>, PersistentDescriptorSetError>
[src]
self
) -> Result<FixedSizeDescriptorSetBuilderArray<'a, L, R>, PersistentDescriptorSetError>
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, L, R>, PersistentDescriptorSetError>
[src]
self
) -> Result<FixedSizeDescriptorSetBuilder<'a, L, R>, PersistentDescriptorSetError>
Skips the current descriptor if it is empty.
pub fn add_buffer<T>(
self,
buffer: T
) -> Result<FixedSizeDescriptorSetBuilder<'a, L, (R, PersistentDescriptorSetBuf<T>)>, PersistentDescriptorSetError> where
T: BufferAccess,
[src]
self,
buffer: T
) -> Result<FixedSizeDescriptorSetBuilder<'a, L, (R, PersistentDescriptorSetBuf<T>)>, PersistentDescriptorSetError> where
T: BufferAccess,
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 pipeline layout.
pub fn add_buffer_view<T>(
self,
view: T
) -> Result<FixedSizeDescriptorSetBuilder<'a, L, (R, PersistentDescriptorSetBufView<T>)>, PersistentDescriptorSetError> where
T: BufferViewRef,
[src]
self,
view: T
) -> Result<FixedSizeDescriptorSetBuilder<'a, L, (R, PersistentDescriptorSetBufView<T>)>, PersistentDescriptorSetError> where
T: BufferViewRef,
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 pipeline layout.
pub fn add_image<T>(
self,
image_view: T
) -> Result<FixedSizeDescriptorSetBuilder<'a, L, (R, PersistentDescriptorSetImg<T>)>, PersistentDescriptorSetError> where
T: ImageViewAccess,
[src]
self,
image_view: T
) -> Result<FixedSizeDescriptorSetBuilder<'a, L, (R, PersistentDescriptorSetImg<T>)>, PersistentDescriptorSetError> where
T: ImageViewAccess,
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 pipeline layout.
pub fn add_sampled_image<T>(
self,
image_view: T,
sampler: Arc<Sampler>
) -> Result<FixedSizeDescriptorSetBuilder<'a, L, ((R, PersistentDescriptorSetImg<T>), PersistentDescriptorSetSampler)>, PersistentDescriptorSetError> where
T: ImageViewAccess,
[src]
self,
image_view: T,
sampler: Arc<Sampler>
) -> Result<FixedSizeDescriptorSetBuilder<'a, L, ((R, PersistentDescriptorSetImg<T>), PersistentDescriptorSetSampler)>, PersistentDescriptorSetError> where
T: ImageViewAccess,
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 pipeline layout.
pub fn add_sampler(
self,
sampler: Arc<Sampler>
) -> Result<FixedSizeDescriptorSetBuilder<'a, L, (R, PersistentDescriptorSetSampler)>, PersistentDescriptorSetError>
[src]
self,
sampler: Arc<Sampler>
) -> Result<FixedSizeDescriptorSetBuilder<'a, L, (R, PersistentDescriptorSetSampler)>, PersistentDescriptorSetError>
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 pipeline layout.
Auto Trait Implementations
impl<'a, L, R> RefUnwindSafe for FixedSizeDescriptorSetBuilder<'a, L, R> where
L: RefUnwindSafe,
R: RefUnwindSafe,
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<'a, L, R> Send for FixedSizeDescriptorSetBuilder<'a, L, R> where
L: Send,
R: Send,
L: Send,
R: Send,
impl<'a, L, R> Sync for FixedSizeDescriptorSetBuilder<'a, L, R> where
L: Sync,
R: Sync,
L: Sync,
R: Sync,
impl<'a, L, R> Unpin for FixedSizeDescriptorSetBuilder<'a, L, R> where
L: Unpin,
R: Unpin,
L: Unpin,
R: Unpin,
impl<'a, L, R> !UnwindSafe for FixedSizeDescriptorSetBuilder<'a, L, R>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
fn is_size_suitable(usize) -> bool
[src]
fn indiv_size() -> usize
[src]
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>,