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

27 lines
423 B
Plaintext
Raw Normal View History

2012-04-04 07:30:07 +04:00
void main ()
{
2012-10-08 07:41:18 +04:00
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;
2015-07-29 06:04:55 +03:00
for (int i_1 = 0; i_1 < 10; i_1++) {
a_2 += 1.0;
2012-04-04 07:30:07 +04:00
};
while (true) {
2014-02-11 11:06:13 +04:00
a_2 += 2.0;
2012-04-04 07:30:07 +04:00
break;
};
2014-10-11 23:32:43 +04:00
a_2 += 1.0;
a_2 = (a_2 * a_2);
a_2 = -(a_2);
a_2 = (a_2 - 1.0);
a_2 = inversesqrt(a_2);
gl_FragColor = vec4(a_2);
2012-04-04 07:30:07 +04:00
}
2014-02-11 11:06:13 +04:00
2014-10-11 23:32:43 +04:00
// stats: 12 alu 1 tex 4 flow
// inputs: 1
// #0: gl_FragCoord (high float) 4x1 [-1] loc 0