naga icon indicating copy to clipboard operation
naga copied to clipboard

glsl-in: Fix missing stores for local declarations

Open adeline-sparks opened this issue 2 years ago • 0 comments

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.

adeline-sparks avatar Aug 16 '22 01:08 adeline-sparks