bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-vec-var-index-ir.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

33 lines
586 B
Text

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