pub(crate) struct BindGroupStates {
pub buffers: BufferBindGroupState,
pub views: TextureViewBindGroupState,
pub external_textures: StatelessTracker<ExternalTexture>,
pub samplers: StatelessTracker<Sampler>,
pub acceleration_structures: StatelessTracker<Tlas>,
}Expand description
All the usages that a bind group contains. The uses are not deduplicated in any way and may include conflicting uses. This is fully compliant by the WebGPU spec.
All bind group states are sorted by their ID so that when adding to a tracker, they are added in the most efficient order possible (ascending order).
Fields§
§buffers: BufferBindGroupState§views: TextureViewBindGroupState§external_textures: StatelessTracker<ExternalTexture>§samplers: StatelessTracker<Sampler>§acceleration_structures: StatelessTracker<Tlas>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BindGroupStates
impl !RefUnwindSafe for BindGroupStates
impl Send for BindGroupStates
impl Sync for BindGroupStates
impl Unpin for BindGroupStates
impl !UnwindSafe for BindGroupStates
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