bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-vec-var-index-ir.txt
2012-10-07 20:41:18 -07:00

33 lines
611 B
Text

void main ()
{
int j_1;
vec2 c_2;
vec2 tmpvar_3;
tmpvar_3 = vec2(0.0, 0.0);
c_2 = tmpvar_3;
int tmpvar_4;
tmpvar_4 = 0;
j_1 = tmpvar_4;
while (true) {
if (!((j_1 < 2))) {
break;
};
vec2 tmpvar_5;
tmpvar_5 = vec2(vec2(0.0, 0.0)[j_1]);
vec2 tmpvar_6;
tmpvar_6 = abs (tmpvar_5);
vec2 tmpvar_7;
tmpvar_7 = (c_2 + tmpvar_6);
c_2 = tmpvar_7;
int tmpvar_8;
tmpvar_8 = (j_1 + 1);
j_1 = tmpvar_8;
};
vec4 tmpvar_9;
tmpvar_9.zw = vec2(0.0, 0.0);
tmpvar_9.xy = c_2.xy;
vec4 tmpvar_10;
tmpvar_10 = tmpvar_9;
gl_FragColor = tmpvar_10;
}