bgfx/3rdparty/glsl-optimizer/tests/fragment/syntax-irES.txt

42 lines
863 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
mediump vec4 xlat_main ()
{
2012-10-07 23:41:18 -04:00
highp float foo_1;
float tmpvar_2;
tmpvar_2 = 1.0;
foo_1 = tmpvar_2;
2012-04-03 23:30:07 -04:00
highp float tmpvar_3;
2012-10-07 23:41:18 -04:00
tmpvar_3 = (foo_1 + 1.0);
foo_1 = tmpvar_3;
2012-04-03 23:30:07 -04:00
highp float tmpvar_4;
2012-10-07 23:41:18 -04:00
tmpvar_4 = (foo_1 + 100000.0);
foo_1 = tmpvar_4;
2012-04-03 23:30:07 -04:00
highp float tmpvar_5;
2012-10-07 23:41:18 -04:00
tmpvar_5 = (foo_1 + -(0.001));
foo_1 = tmpvar_5;
2012-04-03 23:30:07 -04:00
highp float tmpvar_6;
2012-10-07 23:41:18 -04:00
tmpvar_6 = (foo_1 + 2.0);
foo_1 = tmpvar_6;
highp float tmpvar_7;
tmpvar_7 = (foo_1 + 3.0);
foo_1 = tmpvar_7;
highp vec4 tmpvar_8;
tmpvar_8 = vec4(foo_1);
return tmpvar_8;
2012-04-03 23:30:07 -04:00
}
void main ()
{
2012-10-07 23:41:18 -04:00
mediump vec4 xl_retval_9;
mediump vec4 tmpvar_10;
tmpvar_10 = xlat_main ();
mediump vec4 tmpvar_11;
tmpvar_11 = tmpvar_10;
xl_retval_9 = tmpvar_11;
mediump vec4 tmpvar_12;
tmpvar_12 = xl_retval_9.xyzw;
mediump vec4 tmpvar_13;
tmpvar_13 = tmpvar_12;
gl_FragData[0] = tmpvar_13;
2012-04-03 23:30:07 -04:00
}