pub struct MultiPassPipeline {
pub label: String,
pub passes: Vec<ComputePass>,
}Expand description
A sequence of compute passes that execute in order.
Fields§
§label: StringHuman-readable label.
passes: Vec<ComputePass>Ordered list of passes.
Implementations§
Source§impl MultiPassPipeline
impl MultiPassPipeline
Sourcepub fn add_pass(&mut self, pass: ComputePass)
pub fn add_pass(&mut self, pass: ComputePass)
Append a compute pass.
Sourcepub fn num_passes(&self) -> usize
pub fn num_passes(&self) -> usize
Number of passes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MultiPassPipeline
impl RefUnwindSafe for MultiPassPipeline
impl Send for MultiPassPipeline
impl Sync for MultiPassPipeline
impl Unpin for MultiPassPipeline
impl UnsafeUnpin for MultiPassPipeline
impl UnwindSafe for MultiPassPipeline
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