bgfx/3rdparty/glsl-optimizer/tests/fragment/ast-out.txt
2012-10-07 20:41:18 -07:00

25 lines
429 B
Text

void main ()
{
int i_1;
float a_2;
if ((gl_FragCoord.x == 1.0)) {
discard;
};
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);
};
while (true) {
a_2 = (a_2 + 2.0);
break;
};
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);
}