bgfx/3rdparty/glsl-optimizer/tests/fragment/ast-out.txt

26 lines
429 B
Plaintext
Raw Normal View History

2012-04-04 07:30:07 +04:00
void main ()
{
2012-10-08 07:41:18 +04:00
int i_1;
float a_2;
2012-04-04 07:30:07 +04:00
if ((gl_FragCoord.x == 1.0)) {
discard;
};
2012-10-08 07:41:18 +04:00
a_2 = 4.0;
i_1 = 0;
for (int i_1 = 0; i_1 < 10; ) {
a_2 = (a_2 + 1.0);
i_1 = (i_1 + 1);
2012-04-04 07:30:07 +04:00
};
while (true) {
2012-10-08 07:41:18 +04:00
a_2 = (a_2 + 2.0);
2012-04-04 07:30:07 +04:00
break;
};
2012-10-08 07:41:18 +04:00
float tmpvar_3;
tmpvar_3 = (a_2 + 1.0);
float tmpvar_4;
tmpvar_4 = inversesqrt((-((tmpvar_3 * tmpvar_3)) - 1.0));
a_2 = tmpvar_4;
gl_FragColor = vec4(tmpvar_4);
2012-04-04 07:30:07 +04:00
}