pub struct ComputePipeline { /* private fields */ }Implementations§
Source§impl ComputePipeline
impl ComputePipeline
pub fn new( device: &Device, label: &str, shader: &str, entry: &str, bindings: &[BindingSpec], workgroup_size: u32, ) -> Self
pub fn bind_group_layout(&self) -> &BindGroupLayout
pub fn pipeline(&self) -> &WgpuComputePipeline
pub fn workgroup_size(&self) -> u32
pub fn create_bind_group( &self, device: &Device, entries: &[BindGroupEntry<'_>], ) -> BindGroup
pub fn workgroup_count(&self, elements: u32) -> u32
pub fn dispatch( &self, encoder: &mut CommandEncoder, bind_group: &BindGroup, count: u32, )
pub fn dispatch_indirect( &self, encoder: &mut CommandEncoder, bind_group: &BindGroup, args: &GpuBuffer, )
pub fn dispatch_indirect_workgrouped( &self, encoder: &mut CommandEncoder, bind_group: &BindGroup, args: &GpuBuffer, )
Auto 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