bgfx/3rdparty/glsl-optimizer/tests/fragment/loop-fornounroll-irES.txt

29 lines
511 B
Text
Raw Normal View History

2013-03-17 14:29:03 -04:00
void main ()
{
2014-02-11 02:06:13 -05:00
highp float f_1;
2013-03-17 14:29:03 -04:00
int i_2;
int tmpvar_3;
tmpvar_3 = 0;
i_2 = tmpvar_3;
2014-03-29 19:26:01 -04:00
mediump float tmpvar_4;
2013-03-17 14:29:03 -04:00
tmpvar_4 = 0.0;
f_1 = tmpvar_4;
while (true) {
if (!((i_2 < 32))) {
break;
};
2014-02-11 02:06:13 -05:00
highp float tmpvar_5;
2013-03-17 14:29:03 -04:00
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;
};
2014-02-11 02:06:13 -05:00
highp vec4 tmpvar_7;
2013-03-17 14:29:03 -04:00
tmpvar_7 = vec4(f_1);
2014-02-11 02:06:13 -05:00
highp vec4 tmpvar_8;
2013-03-17 14:29:03 -04:00
tmpvar_8 = tmpvar_7;
gl_FragColor = tmpvar_8;
}