Struct wgpu_core::track::texture::TextureStateSet
source · pub(crate) struct TextureStateSet {
simple: Vec<TextureUses>,
complex: FastHashMap<usize, ComplexTextureState>,
}
Expand description
Container for corresponding simple and complex texture states.
Fields§
§simple: Vec<TextureUses>
§complex: FastHashMap<usize, ComplexTextureState>
Implementations§
source§impl TextureStateSet
impl TextureStateSet
fn new() -> Self
fn clear(&mut self)
fn set_size(&mut self, size: usize)
fn size(&self) -> usize
sourceunsafe fn get_unchecked(
&self,
index: usize,
) -> SingleOrManyStates<TextureUses, &ComplexTextureState>
unsafe fn get_unchecked( &self, index: usize, ) -> SingleOrManyStates<TextureUses, &ComplexTextureState>
SAFETY: index
must be in bounds.
sourceunsafe fn get_mut_unchecked(
&mut self,
index: usize,
) -> SingleOrManyStates<&mut TextureUses, &mut ComplexTextureState>
unsafe fn get_mut_unchecked( &mut self, index: usize, ) -> SingleOrManyStates<&mut TextureUses, &mut ComplexTextureState>
§Safety
The index
must be in bounds.
sourceunsafe fn insert_simple_unchecked(&mut self, index: usize, simple: TextureUses)
unsafe fn insert_simple_unchecked(&mut self, index: usize, simple: TextureUses)
§Safety
The index
must be in bounds.
sourceunsafe fn insert_complex_unchecked(
&mut self,
index: usize,
complex: ComplexTextureState,
)
unsafe fn insert_complex_unchecked( &mut self, index: usize, complex: ComplexTextureState, )
§Safety
The index
must be in bounds.
sourceunsafe fn make_simple_unchecked(&mut self, index: usize, simple: TextureUses)
unsafe fn make_simple_unchecked(&mut self, index: usize, simple: TextureUses)
§Safety
The index
must be in bounds.
sourceunsafe fn make_complex_unchecked(
&mut self,
index: usize,
complex: ComplexTextureState,
)
unsafe fn make_complex_unchecked( &mut self, index: usize, complex: ComplexTextureState, )
§Safety
The index
must be in bounds.
fn tracker_assert_in_bounds(&self, index: usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextureStateSet
impl RefUnwindSafe for TextureStateSet
impl Send for TextureStateSet
impl Sync for TextureStateSet
impl Unpin for TextureStateSet
impl UnwindSafe for TextureStateSet
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