[][src]Struct wgpu_core::track::PendingTransition

pub struct PendingTransition<S: ResourceState> {
    pub id: S::Id,
    pub selector: S::Selector,
    pub usage: Range<S::Usage>,
}

A structure containing all the information about a particular resource transition. User code should be able to generate a pipeline barrier based on the contents.

Fields

id: S::Idselector: S::Selectorusage: Range<S::Usage>

Methods

impl PendingTransition<BufferState>[src]

pub fn into_hal<'a, B: Backend>(self, buf: &'a Buffer<B>) -> Barrier<'a, B>[src]

Produce the gfx-hal barrier corresponding to the transition.

impl PendingTransition<TextureState>[src]

pub fn into_hal<'a, B: Backend>(self, tex: &'a Texture<B>) -> Barrier<'a, B>[src]

Produce the gfx-hal barrier corresponding to the transition.

Trait Implementations

impl<S: Debug + ResourceState> Debug for PendingTransition<S> where
    S::Id: Debug,
    S::Selector: Debug,
    S::Usage: Debug
[src]

impl<S: PartialEq + ResourceState> PartialEq<PendingTransition<S>> for PendingTransition<S> where
    S::Id: PartialEq,
    S::Selector: PartialEq,
    S::Usage: PartialEq
[src]

impl<S: ResourceState> StructuralPartialEq for PendingTransition<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for PendingTransition<S> where
    <S as ResourceState>::Id: RefUnwindSafe,
    <S as ResourceState>::Selector: RefUnwindSafe,
    <S as ResourceState>::Usage: RefUnwindSafe

impl<S> Send for PendingTransition<S> where
    <S as ResourceState>::Id: Send,
    <S as ResourceState>::Selector: Send,
    <S as ResourceState>::Usage: Send

impl<S> Sync for PendingTransition<S> where
    <S as ResourceState>::Id: Sync,
    <S as ResourceState>::Selector: Sync,
    <S as ResourceState>::Usage: Sync

impl<S> Unpin for PendingTransition<S> where
    <S as ResourceState>::Id: Unpin,
    <S as ResourceState>::Selector: Unpin,
    <S as ResourceState>::Usage: Unpin

impl<S> UnwindSafe for PendingTransition<S> where
    <S as ResourceState>::Id: UnwindSafe,
    <S as ResourceState>::Selector: UnwindSafe,
    <S as ResourceState>::Usage: UnwindSafe

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.