pub struct DescriptorRanges { /* private fields */ }
Expand description
Number of descriptors per type.
Implementations§
Source§impl DescriptorRanges
impl DescriptorRanges
Sourcepub fn add_binding(&mut self, binding: DescriptorSetLayoutBinding)
pub fn add_binding(&mut self, binding: DescriptorSetLayoutBinding)
Add a single layout binding.
Useful when created with DescriptorRanges::zero()
.
Sourcepub fn iter(&self) -> DescriptorRangesIter<'_> ⓘ
pub fn iter(&self) -> DescriptorRangesIter<'_> ⓘ
Iterate through ranges yelding descriptor types and their amount.
Sourcepub fn counts_mut(&mut self) -> &mut [u32]
pub fn counts_mut(&mut self) -> &mut [u32]
Read or write as slice.
Sourcepub fn from_bindings(bindings: &[DescriptorSetLayoutBinding]) -> Self
pub fn from_bindings(bindings: &[DescriptorSetLayoutBinding]) -> Self
Calculate ranges from bindings.
Sourcepub fn from_binding_iter<I>(bindings: I) -> Selfwhere
I: Iterator<Item = DescriptorSetLayoutBinding>,
pub fn from_binding_iter<I>(bindings: I) -> Selfwhere
I: Iterator<Item = DescriptorSetLayoutBinding>,
Calculate ranges from bindings, specified with an iterator.
Trait Implementations§
Source§impl Add for DescriptorRanges
impl Add for DescriptorRanges
Source§impl AddAssign for DescriptorRanges
impl AddAssign for DescriptorRanges
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl Clone for DescriptorRanges
impl Clone for DescriptorRanges
Source§fn clone(&self) -> DescriptorRanges
fn clone(&self) -> DescriptorRanges
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DescriptorRanges
impl Debug for DescriptorRanges
Source§impl Hash for DescriptorRanges
impl Hash for DescriptorRanges
Source§impl<'a> IntoIterator for &'a DescriptorRanges
impl<'a> IntoIterator for &'a DescriptorRanges
Source§type Item = DescriptorRangeDesc
type Item = DescriptorRangeDesc
The type of the elements being iterated over.
Source§type IntoIter = DescriptorRangesIter<'a>
type IntoIter = DescriptorRangesIter<'a>
Which kind of iterator are we turning this into?
Source§impl Mul<u32> for DescriptorRanges
impl Mul<u32> for DescriptorRanges
Source§impl MulAssign<u32> for DescriptorRanges
impl MulAssign<u32> for DescriptorRanges
Source§fn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
Performs the
*=
operation. Read moreSource§impl PartialEq for DescriptorRanges
impl PartialEq for DescriptorRanges
Source§impl PartialOrd for DescriptorRanges
impl PartialOrd for DescriptorRanges
Source§impl Sub for DescriptorRanges
impl Sub for DescriptorRanges
Source§impl SubAssign for DescriptorRanges
impl SubAssign for DescriptorRanges
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for DescriptorRanges
impl Eq for DescriptorRanges
impl StructuralPartialEq for DescriptorRanges
Auto Trait Implementations§
impl Freeze for DescriptorRanges
impl RefUnwindSafe for DescriptorRanges
impl Send for DescriptorRanges
impl Sync for DescriptorRanges
impl Unpin for DescriptorRanges
impl UnwindSafe for DescriptorRanges
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)