pub struct TextureTransition<T> {
pub texture: T,
pub selector: Option<TextureSelector>,
pub state: TextureUses,
}
Expand description
A texture transition for use with CommandEncoder::transition_resources
.
Fields§
§texture: T
The texture to transition.
selector: Option<TextureSelector>
An optional selector to transition only part of the texture.
If None, the entire texture will be transitioned.
state: TextureUses
The new state to transition to.
Trait Implementations§
Source§impl<T: Clone> Clone for TextureTransition<T>
impl<T: Clone> Clone for TextureTransition<T>
Source§fn clone(&self) -> TextureTransition<T>
fn clone(&self) -> TextureTransition<T>
Returns a duplicate 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<T> Freeze for TextureTransition<T>where
T: Freeze,
impl<T> RefUnwindSafe for TextureTransition<T>where
T: RefUnwindSafe,
impl<T> Send for TextureTransition<T>where
T: Send,
impl<T> Sync for TextureTransition<T>where
T: Sync,
impl<T> Unpin for TextureTransition<T>where
T: Unpin,
impl<T> UnwindSafe for TextureTransition<T>where
T: UnwindSafe,
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