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§
Auto 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