Struct rafx_api::RafxTextureBarrier [−][src]
A memory barrier for textures. This is used to transition textures between resource states and possibly from one queue to another.
Fields
texture: &'a RafxTexturesrc_state: RafxResourceStatedst_state: RafxResourceStatequeue_transition: RafxBarrierQueueTransitionarray_slice: Option<u16>If set, only the specified array element is included
mip_slice: Option<u8>If set, only the specified mip level is included
Implementations
impl<'a> RafxTextureBarrier<'a>[src]
pub fn state_transition(
texture: &'a RafxTexture,
src_state: RafxResourceState,
dst_state: RafxResourceState
) -> RafxTextureBarrier<'_>[src]
texture: &'a RafxTexture,
src_state: RafxResourceState,
dst_state: RafxResourceState
) -> RafxTextureBarrier<'_>
Creates a simple state transition
Auto Trait Implementations
impl<'a> RefUnwindSafe for RafxTextureBarrier<'a>
impl<'a> Send for RafxTextureBarrier<'a>
impl<'a> Sync for RafxTextureBarrier<'a>
impl<'a> Unpin for RafxTextureBarrier<'a>
impl<'a> UnwindSafe for RafxTextureBarrier<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Resource for T where
T: Downcast + Send + Sync, [src]
T: Downcast + Send + Sync,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,