pub struct PassQueue { /* private fields */ }Expand description
An ordered queue of ComputePass entries.
Implementations§
Source§impl PassQueue
impl PassQueue
Sourcepub fn add(&mut self, pass: ComputePass)
pub fn add(&mut self, pass: ComputePass)
Appends a pass to the queue.
Sourcepub fn passes_of_type(&self, pt: &PassType) -> Vec<&ComputePass>
pub fn passes_of_type(&self, pt: &PassType) -> Vec<&ComputePass>
Returns references to all passes whose type matches pt.
Sourcepub fn total_bindings(&self) -> usize
pub fn total_bindings(&self) -> usize
Total number of bindings across all passes.
Sourcepub fn pass_count(&self) -> usize
pub fn pass_count(&self) -> usize
Returns the number of passes in the queue.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PassQueue
impl RefUnwindSafe for PassQueue
impl Send for PassQueue
impl Sync for PassQueue
impl Unpin for PassQueue
impl UnsafeUnpin for PassQueue
impl UnwindSafe for PassQueue
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