#10456·wgpu

Naga zero initialization pass

Author: inner-daemonsCreated Sep 24, 2026Updated Sep 29, 2026
Labelsarea: performancenaga

Is your feature request related to a problem? Please describe. See #10314 and discussion.

Zero initialization of groupshared variables is currently done from a single thread, even when there are large arrays involved (like in mesh shader outputs), which makes shaders take way longer than they should need to on startup.

Describe the solution you'd like We should add a naga pass that rewrites variables declared as zero-initialized into actual zero initialization instructions, and do some optimization so that large arrays also get initialized faster.

Describe alternatives you've considered Could be a per-backend optimization.

Additional context Add any other context or screenshots about the feature request here.