[][src]Struct gfx_descriptor::DescriptorCounts

pub struct DescriptorCounts { /* fields omitted */ }
[]

Number of descriptors per type.

Implementations

impl DescriptorCounts[src][]

pub const EMPTY: Self[src][][]

Empty descriptor counts.

pub fn add_binding(&mut self, binding: DescriptorSetLayoutBinding)[src][]

Add a single layout binding. Useful when created with DescriptorCounts::EMPTY.

pub fn filtered(&self) -> ArrayVec<[DescriptorRangeDesc; 15]>[src][]

Return the filtered list of descriptors.

pub fn multiply(&self, value: u32) -> Self[src][]

Multiply all the counts by a value.

Trait Implementations

impl AddAssign<DescriptorCounts> for DescriptorCounts[src][+]

impl Clone for DescriptorCounts[src][+]

impl Debug for DescriptorCounts[src][+]

impl Default for DescriptorCounts[src][+]

impl Eq for DescriptorCounts[src]

impl FromIterator<DescriptorSetLayoutBinding> for DescriptorCounts[src][+]

impl Hash for DescriptorCounts[src][+]

impl PartialEq<DescriptorCounts> for DescriptorCounts[src][+]

impl PartialOrd<DescriptorCounts> for DescriptorCounts[src][+]

impl StructuralEq for DescriptorCounts[src]

impl StructuralPartialEq for DescriptorCounts[src]

impl SubAssign<DescriptorCounts> for DescriptorCounts[src][+]

Auto Trait Implementations

impl RefUnwindSafe for DescriptorCounts

impl Send for DescriptorCounts

impl Sync for DescriptorCounts

impl Unpin for DescriptorCounts

impl UnwindSafe for DescriptorCounts

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src][+]

type Owned = T

The resulting type after obtaining ownership.

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.

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.