pub(crate) struct BindGroupLayoutState {
pub(crate) raw: RawBindGroupLayout,
pub(crate) origin: Origin,
pub(crate) binding_count_validator: BindingTypeMaxCountValidator,
}Fields§
§raw: RawBindGroupLayout§origin: OriginIt is very important that we know if the bind group comes from the BGL pool.
If it does, then we need to remove it from the pool when we drop it.
We cannot unconditionally remove from the pool, as BGLs that don’t come from the pool (derived BGLs) must not be removed.
binding_count_validator: BindingTypeMaxCountValidatorTrait Implementations§
Auto Trait Implementations§
impl Freeze for BindGroupLayoutState
impl !RefUnwindSafe for BindGroupLayoutState
impl Send for BindGroupLayoutState
impl Sync for BindGroupLayoutState
impl Unpin for BindGroupLayoutState
impl !UnwindSafe for BindGroupLayoutState
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