pub struct BarrierTracker { /* private fields */ }Expand description
Tracks barriers inserted during a compute pass.
Implementations§
Source§impl BarrierTracker
impl BarrierTracker
Sourcepub fn push(&mut self, kind: BarrierKind, label: Option<&str>)
pub fn push(&mut self, kind: BarrierKind, label: Option<&str>)
Record a barrier with the given kind and optional label.
Sourcepub fn records(&self) -> &[BarrierRecord]
pub fn records(&self) -> &[BarrierRecord]
All recorded barriers.
Sourcepub fn count_of_kind(&self, kind: BarrierKind) -> usize
pub fn count_of_kind(&self, kind: BarrierKind) -> usize
Count barriers of a specific kind.
Trait Implementations§
Source§impl Debug for BarrierTracker
impl Debug for BarrierTracker
Source§impl Default for BarrierTracker
impl Default for BarrierTracker
Source§fn default() -> BarrierTracker
fn default() -> BarrierTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BarrierTracker
impl RefUnwindSafe for BarrierTracker
impl Send for BarrierTracker
impl Sync for BarrierTracker
impl Unpin for BarrierTracker
impl UnsafeUnpin for BarrierTracker
impl UnwindSafe for BarrierTracker
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more