[][src]Struct rendy_descriptor::DescriptorRanges

pub struct DescriptorRanges { /* fields omitted */ }

Number of descriptors per type.

Methods

impl DescriptorRanges[src]

pub fn zero() -> Self[src]

Create new instance without descriptors.

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

Add a single layout binding. Useful when created with DescriptorRanges::zero().

Important traits for DescriptorRangesIter<'a>
pub fn iter(&self) -> DescriptorRangesIter[src]

Iterate through ranges yelding descriptor types and their amount.

pub fn counts(&self) -> &[u32][src]

Read as slice.

pub fn counts_mut(&mut self) -> &mut [u32][src]

Read or write as slice.

pub fn from_bindings(bindings: &[DescriptorSetLayoutBinding]) -> Self[src]

Calculate ranges from bindings.

pub fn from_binding_iter<I>(bindings: I) -> Self where
    I: Iterator<Item = DescriptorSetLayoutBinding>, 
[src]

Calculate ranges from bindings, specified with an iterator.

Trait Implementations

impl<'a> IntoIterator for &'a DescriptorRanges[src]

type Item = DescriptorRangeDesc

The type of the elements being iterated over.

type IntoIter = DescriptorRangesIter<'a>

Which kind of iterator are we turning this into?

impl Clone for DescriptorRanges[src]

impl Copy for DescriptorRanges[src]

impl Eq for DescriptorRanges[src]

impl PartialEq<DescriptorRanges> for DescriptorRanges[src]

impl PartialOrd<DescriptorRanges> for DescriptorRanges[src]

impl Debug for DescriptorRanges[src]

impl Sub<DescriptorRanges> for DescriptorRanges[src]

type Output = Self

The resulting type after applying the - operator.

impl Add<DescriptorRanges> for DescriptorRanges[src]

type Output = Self

The resulting type after applying the + operator.

impl Mul<u32> for DescriptorRanges[src]

type Output = Self

The resulting type after applying the * operator.

impl AddAssign<DescriptorRanges> for DescriptorRanges[src]

impl SubAssign<DescriptorRanges> for DescriptorRanges[src]

impl MulAssign<u32> for DescriptorRanges[src]

impl Hash for DescriptorRanges[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Supports<T> for T[src]