naga
naga copied to clipboard
glsl-in: Fix missing stores for local declarations
Previously, if a local variable was declared with a constant value, we would elide the store and instead give the variable an initial value (as if it was a global variable). This caused variables to not be re-initialized each time through a loop.
Fixes #1935, but the issue seems broad and might fix others.