Struct vulkano::descriptor::descriptor_set::FixedSizeDescriptorSet
source · pub struct FixedSizeDescriptorSet<L, R> { /* private fields */ }
Expand description
A descriptor set created from a FixedSizeDescriptorSetsPool
.
Trait Implementations
sourceimpl<L, R> DescriptorSet for FixedSizeDescriptorSet<L, R>where
L: PipelineLayoutAbstract,
R: PersistentDescriptorSetResources,
impl<L, R> DescriptorSet for FixedSizeDescriptorSet<L, R>where
L: PipelineLayoutAbstract,
R: PersistentDescriptorSetResources,
sourcefn inner(&self) -> &UnsafeDescriptorSet
fn inner(&self) -> &UnsafeDescriptorSet
Returns the inner
UnsafeDescriptorSet
.sourcefn num_buffers(&self) -> usize
fn num_buffers(&self) -> usize
Returns the number of buffers within this descriptor set.
sourcefn buffer(&self, index: usize) -> Option<(&dyn BufferAccess, u32)>
fn buffer(&self, index: usize) -> Option<(&dyn BufferAccess, u32)>
Returns the
index
th buffer of this descriptor set, or None
if out of range. Also
returns the index of the descriptor that uses this buffer. Read moresourcefn num_images(&self) -> usize
fn num_images(&self) -> usize
Returns the number of images within this descriptor set.
sourceimpl<L, R> DescriptorSetDesc for FixedSizeDescriptorSet<L, R>where
L: PipelineLayoutAbstract,
impl<L, R> DescriptorSetDesc for FixedSizeDescriptorSet<L, R>where
L: PipelineLayoutAbstract,
sourcefn num_bindings(&self) -> usize
fn num_bindings(&self) -> usize
Returns the number of binding slots in the set.
sourcefn descriptor(&self, binding: usize) -> Option<DescriptorDesc>
fn descriptor(&self, binding: usize) -> Option<DescriptorDesc>
Returns a description of a descriptor, or
None
if out of range.sourceimpl<L, R> DeviceOwned for FixedSizeDescriptorSet<L, R>where
L: DeviceOwned,
impl<L, R> DeviceOwned for FixedSizeDescriptorSet<L, R>where
L: DeviceOwned,
Auto Trait Implementations
impl<L, R> !RefUnwindSafe for FixedSizeDescriptorSet<L, R>
impl<L, R> Send for FixedSizeDescriptorSet<L, R>where
L: Send,
R: Send,
impl<L, R> Sync for FixedSizeDescriptorSet<L, R>where
L: Sync,
R: Sync,
impl<L, R> Unpin for FixedSizeDescriptorSet<L, R>where
L: Unpin,
R: Unpin,
impl<L, R> !UnwindSafe for FixedSizeDescriptorSet<L, R>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.
sourceimpl<T> DescriptorSetsCollection for Twhere
T: 'static + DescriptorSet + Send + Sync,
impl<T> DescriptorSetsCollection for Twhere
T: 'static + DescriptorSet + Send + Sync,
fn into_vec(
self
) -> Vec<Box<dyn DescriptorSet + Send + Sync + 'static, Global>, Global>
sourcefn num_bindings_in_set(&self, set: usize) -> Option<usize>
fn num_bindings_in_set(&self, set: usize) -> Option<usize>
Returns the number of descriptors in the set. Includes possibly empty descriptors. Read more
sourcefn descriptor(&self, set: usize, binding: usize) -> Option<DescriptorDesc>
fn descriptor(&self, set: usize, binding: usize) -> Option<DescriptorDesc>
Returns the descriptor for the given binding of the given set. Read more