[−][src]Struct amethyst_rendy::rendy::descriptor::DescriptorRanges
Number of descriptors per type.
Methods
impl DescriptorRanges
[src]
pub fn zero() -> DescriptorRanges
[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]
) -> DescriptorRanges
[src]
bindings: &[DescriptorSetLayoutBinding]
) -> DescriptorRanges
Calculate ranges from bindings.
pub fn from_binding_iter<I>(bindings: I) -> DescriptorRanges where
I: Iterator<Item = DescriptorSetLayoutBinding>,
[src]
I: Iterator<Item = DescriptorSetLayoutBinding>,
Calculate ranges from bindings, specified with an iterator.
Trait Implementations
impl Eq for DescriptorRanges
[src]
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?
ⓘImportant traits for DescriptorRangesIter<'a>fn into_iter(self) -> DescriptorRangesIter<'a>
[src]
impl Copy for DescriptorRanges
[src]
impl SubAssign<DescriptorRanges> for DescriptorRanges
[src]
fn sub_assign(&mut self, rhs: DescriptorRanges)
[src]
impl Sub<DescriptorRanges> for DescriptorRanges
[src]
type Output = DescriptorRanges
The resulting type after applying the -
operator.
fn sub(self, rhs: DescriptorRanges) -> DescriptorRanges
[src]
impl Mul<u32> for DescriptorRanges
[src]
type Output = DescriptorRanges
The resulting type after applying the *
operator.
fn mul(self, rhs: u32) -> DescriptorRanges
[src]
impl Hash for DescriptorRanges
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl AddAssign<DescriptorRanges> for DescriptorRanges
[src]
fn add_assign(&mut self, rhs: DescriptorRanges)
[src]
impl Debug for DescriptorRanges
[src]
impl Clone for DescriptorRanges
[src]
fn clone(&self) -> DescriptorRanges
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl MulAssign<u32> for DescriptorRanges
[src]
fn mul_assign(&mut self, rhs: u32)
[src]
impl PartialEq<DescriptorRanges> for DescriptorRanges
[src]
fn eq(&self, other: &DescriptorRanges) -> bool
[src]
fn ne(&self, other: &DescriptorRanges) -> bool
[src]
impl Add<DescriptorRanges> for DescriptorRanges
[src]
type Output = DescriptorRanges
The resulting type after applying the +
operator.
fn add(self, rhs: DescriptorRanges) -> DescriptorRanges
[src]
impl PartialOrd<DescriptorRanges> for DescriptorRanges
[src]
fn partial_cmp(&self, other: &DescriptorRanges) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl Unpin for DescriptorRanges
impl Sync for DescriptorRanges
impl Send for DescriptorRanges
impl UnwindSafe for DescriptorRanges
impl RefUnwindSafe for DescriptorRanges
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
Convert the source color to the destination color using the bradford method by default Read more
impl<T> SetParameter for T
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Supports<T> for T
[src]
impl<T> Erased for T
[src]
impl<T> Scalar for T where
T: Copy + PartialEq<T> + Any + Debug,
[src]
T: Copy + PartialEq<T> + Any + Debug,
impl<T, Right> ClosedMul<Right> for T where
T: Mul<Right, Output = T> + MulAssign<Right>,
[src]
T: Mul<Right, Output = T> + MulAssign<Right>,
impl<T, Right> ClosedAdd<Right> for T where
T: Add<Right, Output = T> + AddAssign<Right>,
[src]
T: Add<Right, Output = T> + AddAssign<Right>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, Right> ClosedSub<Right> for T where
T: Sub<Right, Output = T> + SubAssign<Right>,
[src]
T: Sub<Right, Output = T> + SubAssign<Right>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
impl<T> Clone for T where
T: Clone,
[src]
T: Clone,