Skip to main content

Module compute

Module compute 

Source
Expand description

Compute shader pipeline — general-purpose GPU compute.

Wraps wgpu::ComputePipeline with bind group layout management and dispatch helpers. Supports single or multiple bind group layouts.

Structs§

ComputePipeline
A compute pipeline wrapping wgpu::ComputePipeline with bind group management.
PingPongBuffer
A double-buffer pair for iterative compute patterns (ping-pong).

Functions§

validate_dispatch
Validate workgroup counts against device limits.
workgroups_1d
Calculate workgroup count for a 1D dispatch.
workgroups_2d
Calculate workgroup counts for a 2D dispatch.