Struct wgpu_core::track::PendingTransition
source · pub(crate) struct PendingTransition<S: ResourceUses> {
pub id: u32,
pub selector: S::Selector,
pub usage: StateTransition<S>,
}
Expand description
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: u32
§selector: S::Selector
§usage: StateTransition<S>
Implementations§
source§impl PendingTransition<BufferUses>
impl PendingTransition<BufferUses>
sourcepub fn into_hal<'a>(
self,
buf: &'a Buffer,
snatch_guard: &'a SnatchGuard<'a>,
) -> BufferBarrier<'a, dyn DynBuffer>
pub fn into_hal<'a>( self, buf: &'a Buffer, snatch_guard: &'a SnatchGuard<'a>, ) -> BufferBarrier<'a, dyn DynBuffer>
Produce the hal barrier corresponding to the transition.
source§impl PendingTransition<TextureUses>
impl PendingTransition<TextureUses>
sourcepub fn into_hal(
self,
texture: &dyn DynTexture,
) -> TextureBarrier<'_, dyn DynTexture>
pub fn into_hal( self, texture: &dyn DynTexture, ) -> TextureBarrier<'_, dyn DynTexture>
Produce the hal barrier corresponding to the transition.
Trait Implementations§
source§impl<S: Debug + ResourceUses> Debug for PendingTransition<S>
impl<S: Debug + ResourceUses> Debug for PendingTransition<S>
source§impl<S: PartialEq + ResourceUses> PartialEq for PendingTransition<S>
impl<S: PartialEq + ResourceUses> PartialEq for PendingTransition<S>
impl<S: ResourceUses> StructuralPartialEq for PendingTransition<S>
Auto Trait Implementations§
impl<S> Freeze for PendingTransition<S>
impl<S> RefUnwindSafe for PendingTransition<S>
impl<S> Send for PendingTransition<S>
impl<S> Sync for PendingTransition<S>
impl<S> Unpin for PendingTransition<S>
impl<S> UnwindSafe for PendingTransition<S>
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