bgfx/3rdparty/glsl-optimizer/tests/fragment/loop-fornounroll-irES.txt
2014-03-29 16:26:01 -07:00

28 lines
511 B
Text

void main ()
{
highp float f_1;
int i_2;
int tmpvar_3;
tmpvar_3 = 0;
i_2 = tmpvar_3;
mediump 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;
}