pub struct ComputePassBuilder<'a> { /* private fields */ }Expand description
Compute pass builder for easier command encoding
Implementations§
Source§impl<'a> ComputePassBuilder<'a>
impl<'a> ComputePassBuilder<'a>
Sourcepub fn new(encoder: &'a mut CommandEncoder) -> Self
pub fn new(encoder: &'a mut CommandEncoder) -> Self
Create a new compute pass builder
Sourcepub fn with_label(self, label: impl Into<String>) -> Self
pub fn with_label(self, label: impl Into<String>) -> Self
Set the compute pass label
Sourcepub fn execute<F>(self, f: F)where
F: FnOnce(&mut ComputePass<'_>),
pub fn execute<F>(self, f: F)where
F: FnOnce(&mut ComputePass<'_>),
Begin the compute pass and execute commands
§Arguments
f- Function that configures the compute pass
Auto Trait Implementations§
impl<'a> Freeze for ComputePassBuilder<'a>
impl<'a> !RefUnwindSafe for ComputePassBuilder<'a>
impl<'a> Send for ComputePassBuilder<'a>
impl<'a> Sync for ComputePassBuilder<'a>
impl<'a> Unpin for ComputePassBuilder<'a>
impl<'a> UnsafeUnpin for ComputePassBuilder<'a>
impl<'a> !UnwindSafe for ComputePassBuilder<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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