pub(crate) struct PerStageBindingTypeCounter {
vertex: u32,
fragment: u32,
compute: u32,
}
Fields§
§vertex: u32
§fragment: u32
§compute: 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 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