pub struct ComputePipelineBuilder<'cpb> { /* private fields */ }
Expand description
A builder for a ComputePipeline
Implementations§
Source§impl<'cpb> ComputePipelineBuilder<'cpb>
impl<'cpb> ComputePipelineBuilder<'cpb>
pub fn new(module: &'cpb ComputeShader) -> Self
pub fn set_entry_point(self, entry_point: &'cpb str) -> Self
pub fn set_label(self, label: Label<'cpb>) -> Self
pub fn set_layout(self, layout: &'cpb PipelineLayout) -> Self
pub fn build(&mut self, device: &Device) -> ComputePipeline
Auto Trait Implementations§
impl<'cpb> Freeze for ComputePipelineBuilder<'cpb>
impl<'cpb> !RefUnwindSafe for ComputePipelineBuilder<'cpb>
impl<'cpb> Send for ComputePipelineBuilder<'cpb>
impl<'cpb> Sync for ComputePipelineBuilder<'cpb>
impl<'cpb> Unpin for ComputePipelineBuilder<'cpb>
impl<'cpb> !UnwindSafe for ComputePipelineBuilder<'cpb>
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