Enum wgpu_core::track::texture::TextureStateProvider
source · enum TextureStateProvider<'a> {
KnownSingle {
state: TextureUses,
},
Selector {
selector: TextureSelector,
state: TextureUses,
},
TextureSet {
set: &'a TextureStateSet,
},
}
Expand description
A source of texture state.
Variants§
KnownSingle
Comes directly from a single state.
Fields
§
state: TextureUses
Selector
Comes from a selector and a single state.
TextureSet
Comes from another texture set.
Fields
§
set: &'a TextureStateSet
Implementations§
source§impl<'a> TextureStateProvider<'a>
impl<'a> TextureStateProvider<'a>
sourcefn from_option(selector: Option<TextureSelector>, state: TextureUses) -> Self
fn from_option(selector: Option<TextureSelector>, state: TextureUses) -> Self
Convenience function turning Option<Selector>
into this enum.
sourceunsafe fn get_state(
self,
texture_selector: Option<&TextureSelector>,
index: usize,
) -> SingleOrManyStates<TextureUses, impl Iterator<Item = (TextureSelector, TextureUses)> + Clone + 'a>
unsafe fn get_state( self, texture_selector: Option<&TextureSelector>, index: usize, ) -> SingleOrManyStates<TextureUses, impl Iterator<Item = (TextureSelector, TextureUses)> + Clone + 'a>
Trait Implementations§
source§impl<'a> Clone for TextureStateProvider<'a>
impl<'a> Clone for TextureStateProvider<'a>
source§fn clone(&self) -> TextureStateProvider<'a>
fn clone(&self) -> TextureStateProvider<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for TextureStateProvider<'a>
impl<'a> RefUnwindSafe for TextureStateProvider<'a>
impl<'a> Send for TextureStateProvider<'a>
impl<'a> Sync for TextureStateProvider<'a>
impl<'a> Unpin for TextureStateProvider<'a>
impl<'a> UnwindSafe for TextureStateProvider<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)