pub struct ComputePipeline { /* private fields */ }Implementations§
Source§impl ComputePipeline
impl ComputePipeline
pub fn new( device: &Device, label: &str, shader: &str, entry: &str, groups: &[&[BindingSpec]], ) -> Self
pub fn pipeline(&self) -> &WgpuComputePipeline
pub fn create_bind_group( &self, device: &Device, group: usize, entries: &[BindGroupEntry<'_>], ) -> BindGroup
Trait Implementations§
Source§impl Clone for ComputePipeline
impl Clone for ComputePipeline
Source§fn clone(&self) -> ComputePipeline
fn clone(&self) -> ComputePipeline
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ComputePipeline
impl !UnwindSafe for ComputePipeline
impl Freeze for ComputePipeline
impl Send for ComputePipeline
impl Sync for ComputePipeline
impl Unpin for ComputePipeline
impl UnsafeUnpin for ComputePipeline
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