glsl: mark variable as loop constant when it is set read only