Expand description
Compute shader support: storage buffers, dispatch, CPU fallback, profiling.
Structs§
- Bind
Group Entry - Describes one entry in a bind group.
- Bind
Group Layout - Layout of a bind group (the descriptor, not the actual bound resources).
- Bind
Group Layout Entry - One entry in a bind-group layout descriptor.
- Compute
Buffer - A buffer suitable for compute shader storage.
- Compute
Context - High-level compute context wrapping a backend.
- Compute
Pipeline - A compute pipeline ready for dispatch.
- Compute
Profiler - Tracks timing information for compute dispatches.
- CpuKernel
- A CPU compute kernel: runs
f(global_id)for every invocation in the workgroup grid, in parallel across a simple thread-per-row scheme. - Dispatch
Record
Enums§
- Access
Mode - Access mode for a binding in a compute shader.
- Binding
Resource - What is bound at a given slot.
Functions§
- cpu_
parallel_ dispatch - Run a CPU compute kernel across multiple threads.
freceives(thread_id, global_x, global_y, global_z).