bgfx/3rdparty/glsl-optimizer/tests/fragment/syntax-irES.txt
2014-03-29 16:26:01 -07:00

41 lines
871 B
Text

mediump vec4 xlat_main ()
{
highp float foo_1;
mediump float tmpvar_2;
tmpvar_2 = 1.0;
foo_1 = tmpvar_2;
highp float tmpvar_3;
tmpvar_3 = (foo_1 + 1.0);
foo_1 = tmpvar_3;
highp float tmpvar_4;
tmpvar_4 = (foo_1 + 100000.0);
foo_1 = tmpvar_4;
highp float tmpvar_5;
tmpvar_5 = (foo_1 + -(0.001));
foo_1 = tmpvar_5;
highp float tmpvar_6;
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;
}
void main ()
{
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;
}