bgfx/3rdparty/glsl-optimizer/tests/fragment/array-constconst-ir.txt

65 lines
1.4 KiB
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
vec4 xlat_main ()
{
2012-10-07 23:41:18 -04:00
int i_1;
vec4 c_2;
vec2 poisson_3[8];
2012-04-03 23:30:07 -04:00
vec2 tmpvar_4;
2012-10-07 23:41:18 -04:00
tmpvar_4 = vec2(0.0, 0.0);
poisson_3[0] = tmpvar_4;
2012-04-03 23:30:07 -04:00
vec2 tmpvar_5;
2012-10-07 23:41:18 -04:00
tmpvar_5 = vec2(0.527837, -0.085868);
poisson_3[1] = tmpvar_5;
2012-04-03 23:30:07 -04:00
vec2 tmpvar_6;
2012-10-07 23:41:18 -04:00
tmpvar_6 = vec2(-0.040088, 0.536087);
poisson_3[2] = tmpvar_6;
2012-04-03 23:30:07 -04:00
vec2 tmpvar_7;
2012-10-07 23:41:18 -04:00
tmpvar_7 = vec2(-0.670445, -0.179949);
poisson_3[3] = tmpvar_7;
2012-04-03 23:30:07 -04:00
vec2 tmpvar_8;
2012-10-07 23:41:18 -04:00
tmpvar_8 = vec2(-0.419418, -0.616039);
poisson_3[4] = tmpvar_8;
vec2 tmpvar_9;
tmpvar_9 = vec2(0.440453, -0.639399);
poisson_3[5] = tmpvar_9;
vec2 tmpvar_10;
tmpvar_10 = vec2(-0.757088, 0.349334);
poisson_3[6] = tmpvar_10;
vec2 tmpvar_11;
tmpvar_11 = vec2(0.574619, 0.685879);
poisson_3[7] = tmpvar_11;
int tmpvar_12;
tmpvar_12 = 0;
i_1 = tmpvar_12;
vec4 tmpvar_13;
tmpvar_13 = vec4(0.0, 0.0, 0.0, 0.0);
c_2 = tmpvar_13;
2012-04-03 23:30:07 -04:00
while (true) {
2012-10-07 23:41:18 -04:00
if (!((i_1 < 8))) {
2012-04-03 23:30:07 -04:00
break;
};
2012-10-07 23:41:18 -04:00
vec2 tmpvar_14;
tmpvar_14 = (c_2.xy + poisson_3[i_1]);
c_2.xy = tmpvar_14.xy.xy;
int tmpvar_15;
tmpvar_15 = (i_1 + 1);
i_1 = tmpvar_15;
2012-04-03 23:30:07 -04:00
};
2012-10-07 23:41:18 -04:00
return c_2;
2012-04-03 23:30:07 -04:00
}
void main ()
{
2012-10-07 23:41:18 -04:00
vec4 xl_retval_16;
vec4 tmpvar_17;
tmpvar_17 = xlat_main ();
vec4 tmpvar_18;
tmpvar_18 = tmpvar_17;
xl_retval_16 = tmpvar_18;
vec4 tmpvar_19;
tmpvar_19 = xl_retval_16.xyzw;
vec4 tmpvar_20;
tmpvar_20 = tmpvar_19;
gl_FragData[0] = tmpvar_20;
2012-04-03 23:30:07 -04:00
}