Struct rafx_api::RafxTextureBarrier[][src]

pub struct RafxTextureBarrier<'a> {
    pub texture: &'a RafxTexture,
    pub src_state: RafxResourceState,
    pub dst_state: RafxResourceState,
    pub queue_transition: RafxBarrierQueueTransition,
    pub array_slice: Option<u16>,
    pub mip_slice: Option<u8>,
}

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Downcast + Send + Sync
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.