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 UnsafeUnpin 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