bgfx/3rdparty/glsl-optimizer/tests/fragment/loop-fornounroll-irES.txt
2014-02-10 23:06:13 -08:00

28 lines
503 B
Text

void main ()
{
highp float f_1;
int i_2;
int tmpvar_3;
tmpvar_3 = 0;
i_2 = tmpvar_3;
float tmpvar_4;
tmpvar_4 = 0.0;
f_1 = tmpvar_4;
while (true) {
if (!((i_2 < 32))) {
break;
};
highp float tmpvar_5;
tmpvar_5 = (f_1 + (gl_FragCoord.x * float(i_2)));
f_1 = tmpvar_5;
int tmpvar_6;
tmpvar_6 = (i_2 + 1);
i_2 = tmpvar_6;
};
highp vec4 tmpvar_7;
tmpvar_7 = vec4(f_1);
highp vec4 tmpvar_8;
tmpvar_8 = tmpvar_7;
gl_FragColor = tmpvar_8;
}