bgfx/3rdparty/glsl-optimizer/tests/fragment/bug-loop-null-from-ir.txt
2012-10-07 20:41:18 -07:00

43 lines
720 B
Text

void main ()
{
int i_1;
int k_2;
float a_3;
float tmpvar_4;
tmpvar_4 = 0.0;
a_3 = tmpvar_4;
int tmpvar_5;
tmpvar_5 = 0;
k_2 = tmpvar_5;
int tmpvar_6;
tmpvar_6 = 0;
i_1 = tmpvar_6;
while (true) {
if (!((i_1 < 3))) {
break;
};
float tmpvar_7;
tmpvar_7 = (a_3 + 1.0);
a_3 = tmpvar_7;
int tmpvar_8;
tmpvar_8 = (i_1 + 1);
i_1 = tmpvar_8;
};
while (true) {
if (!((k_2 < 3))) {
break;
};
float tmpvar_9;
tmpvar_9 = (a_3 + 3.0);
a_3 = tmpvar_9;
int tmpvar_10;
tmpvar_10 = (k_2 + 1);
k_2 = tmpvar_10;
};
vec4 tmpvar_11;
tmpvar_11 = vec4(a_3);
vec4 tmpvar_12;
tmpvar_12 = tmpvar_11;
gl_FragColor = tmpvar_12;
}