[−][src]Struct wgpu::ComputePass
An in-progress recording of a compute pass.
Methods
impl<'a> ComputePass<'a>
[src]
pub fn set_bind_group(
&mut self,
index: u32,
bind_group: &BindGroup,
offsets: &[BufferAddress]
)
[src]
&mut self,
index: u32,
bind_group: &BindGroup,
offsets: &[BufferAddress]
)
Sets the active bind group for a given bind group index.
pub fn set_pipeline(&mut self, pipeline: &ComputePipeline)
[src]
Sets the active compute pipeline.
pub fn dispatch(&mut self, x: u32, y: u32, z: u32)
[src]
Dispatches compute work operations.
x
, y
and z
denote the number of work groups to dispatch in each dimension.
pub fn dispatch_indirect(
&mut self,
indirect_buffer: &Buffer,
indirect_offset: BufferAddress
)
[src]
&mut self,
indirect_buffer: &Buffer,
indirect_offset: BufferAddress
)
Dispatches compute work operations, based on the contents of the indirect_buffer
.
Trait Implementations
impl<'a> Drop for ComputePass<'a>
[src]
impl<'a> Debug for ComputePass<'a>
[src]
Auto Trait Implementations
impl<'a> Send for ComputePass<'a>
impl<'a> Sync for ComputePass<'a>
impl<'a> Unpin for ComputePass<'a>
impl<'a> !UnwindSafe for ComputePass<'a>
impl<'a> !RefUnwindSafe for ComputePass<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,