[−][src]Trait vulkano::descriptor::descriptor_set::DescriptorSet
Trait for objects that contain a collection of resources that will be accessible by shaders.
Objects of this type can be passed when submitting a draw command.
Required methods
fn inner(&self) -> &UnsafeDescriptorSet
Returns the inner UnsafeDescriptorSet.
fn num_buffers(&self) -> usize
Returns the number of buffers within this descriptor set.
fn buffer(&self, index: usize) -> Option<(&dyn BufferAccess, u32)>
Returns the indexth buffer of this descriptor set, or None if out of range. Also
returns the index of the descriptor that uses this buffer.
The valid range is between 0 and num_buffers().
fn num_images(&self) -> usize
Returns the number of images within this descriptor set.
fn image(&self, index: usize) -> Option<(&dyn ImageViewAccess, u32)>
Returns the indexth image of this descriptor set, or None if out of range. Also returns
the index of the descriptor that uses this image.
The valid range is between 0 and num_images().
Implementors
impl<L, R> DescriptorSet for FixedSizeDescriptorSet<L, R> where
L: PipelineLayoutAbstract,
R: PersistentDescriptorSetResources, [src]
L: PipelineLayoutAbstract,
R: PersistentDescriptorSetResources,
fn inner(&self) -> &UnsafeDescriptorSet[src]
fn num_buffers(&self) -> usize[src]
fn buffer(&self, index: usize) -> Option<(&dyn BufferAccess, u32)>[src]
fn num_images(&self) -> usize[src]
fn image(&self, index: usize) -> Option<(&dyn ImageViewAccess, u32)>[src]
impl<L, R, P> DescriptorSet for PersistentDescriptorSet<L, R, P> where
L: PipelineLayoutAbstract,
P: DescriptorPoolAlloc,
R: PersistentDescriptorSetResources, [src]
L: PipelineLayoutAbstract,
P: DescriptorPoolAlloc,
R: PersistentDescriptorSetResources,
fn inner(&self) -> &UnsafeDescriptorSet[src]
fn num_buffers(&self) -> usize[src]
fn buffer(&self, index: usize) -> Option<(&dyn BufferAccess, u32)>[src]
fn num_images(&self) -> usize[src]
fn image(&self, index: usize) -> Option<(&dyn ImageViewAccess, u32)>[src]
impl<T> DescriptorSet for T where
T: SafeDeref,
T::Target: DescriptorSet, [src]
T: SafeDeref,
T::Target: DescriptorSet,