[−][src]Struct gfx_descriptor::DescriptorCounts
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][+]
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,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,