pub(crate) struct PerStageBindingTypeCounter {
vertex: Saturating<u32>,
fragment: Saturating<u32>,
compute: Saturating<u32>,
}Fields§
§vertex: Saturating<u32>§fragment: Saturating<u32>§compute: Saturating<u32>Implementations§
Source§impl PerStageBindingTypeCounter
impl PerStageBindingTypeCounter
pub(crate) fn add(&mut self, stage: ShaderStages, count: u32)
pub(crate) fn max(&self) -> (BindingZone, u32)
pub(crate) fn merge(&mut self, other: &Self)
pub(crate) fn validate( &self, limit: u32, kind: BindingTypeMaxCountErrorKind, ) -> Result<(), BindingTypeMaxCountError>
Trait Implementations§
Source§impl Debug for PerStageBindingTypeCounter
impl Debug for PerStageBindingTypeCounter
Source§impl Default for PerStageBindingTypeCounter
impl Default for PerStageBindingTypeCounter
Source§fn default() -> PerStageBindingTypeCounter
fn default() -> PerStageBindingTypeCounter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PerStageBindingTypeCounter
impl RefUnwindSafe for PerStageBindingTypeCounter
impl Send for PerStageBindingTypeCounter
impl Sync for PerStageBindingTypeCounter
impl Unpin for PerStageBindingTypeCounter
impl UnwindSafe for PerStageBindingTypeCounter
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more