Skip to main content

Module compute

Module compute 

Source
Expand description

Compute shader support: storage buffers, dispatch, CPU fallback, profiling.

Structs§

BindGroupEntry
Describes one entry in a bind group.
BindGroupLayout
Layout of a bind group (the descriptor, not the actual bound resources).
BindGroupLayoutEntry
One entry in a bind-group layout descriptor.
ComputeBuffer
A buffer suitable for compute shader storage.
ComputeContext
High-level compute context wrapping a backend.
ComputePipeline
A compute pipeline ready for dispatch.
ComputeProfiler
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.
DispatchRecord

Enums§

AccessMode
Access mode for a binding in a compute shader.
BindingResource
What is bound at a given slot.

Functions§

cpu_parallel_dispatch
Run a CPU compute kernel across multiple threads. f receives (thread_id, global_x, global_y, global_z).