mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
Docs: add structure for indirect dispatch args
This commit is contained in:
parent
60bb2aaa6b
commit
06118be1b1
@ -2871,6 +2871,18 @@ impl<'a> ComputePass<'a> {
|
||||
}
|
||||
|
||||
/// Dispatches compute work operations, based on the contents of the `indirect_buffer`.
|
||||
///
|
||||
/// The structure expected in `indirect_buffer` is the following:
|
||||
///
|
||||
/// ```rust
|
||||
/// // x, y and z denote the number of work groups to dispatch in each dimension.
|
||||
/// #[repr(C)]
|
||||
/// struct DispatchIndirect {
|
||||
/// x: u32,
|
||||
/// y: u32,
|
||||
/// z: u32,
|
||||
/// }
|
||||
/// ```
|
||||
pub fn dispatch_indirect(
|
||||
&mut self,
|
||||
indirect_buffer: &'a Buffer,
|
||||
|
Loading…
Reference in New Issue
Block a user