Trait vulkano::descriptor::descriptor_set::DescriptorSet[][src]

pub unsafe trait DescriptorSet: DescriptorSetDesc + DeviceOwned {
    fn inner(&self) -> &UnsafeDescriptorSet;
fn num_buffers(&self) -> usize;
fn buffer(&self, index: usize) -> Option<(&dyn BufferAccess, u32)>;
fn num_images(&self) -> usize;
fn image(&self, index: usize) -> Option<(&dyn ImageViewAbstract, u32)>; }

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[src]

Returns the inner UnsafeDescriptorSet.

fn num_buffers(&self) -> usize[src]

Returns the number of buffers within this descriptor set.

fn buffer(&self, index: usize) -> Option<(&dyn BufferAccess, u32)>[src]

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[src]

Returns the number of images within this descriptor set.

fn image(&self, index: usize) -> Option<(&dyn ImageViewAbstract, u32)>[src]

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().

Loading content...

Trait Implementations

impl Hash for dyn DescriptorSet + Send + Sync[src]

fn hash<H: Hasher>(&self, state: &mut H)[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl PartialEq<dyn DescriptorSet + 'static + Sync + Send> for dyn DescriptorSet + Send + Sync[src]

fn eq(&self, other: &Self) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Eq for dyn DescriptorSet + Send + Sync[src]

Implementors

impl<R> DescriptorSet for FixedSizeDescriptorSet<R> where
    R: PersistentDescriptorSetResources, 
[src]

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 ImageViewAbstract, u32)>[src]

impl<R, P> DescriptorSet for PersistentDescriptorSet<R, P> where
    P: DescriptorPoolAlloc,
    R: PersistentDescriptorSetResources, 
[src]

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 ImageViewAbstract, u32)>[src]

impl<T> DescriptorSet for T where
    T: SafeDeref,
    T::Target: DescriptorSet
[src]

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 ImageViewAbstract, u32)>[src]

Loading content...