bgfx/3rdparty/glsl-optimizer/tests/fragment/syntax-irES.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

41 lines
819 B
Text

mediump vec4 xlat_main ()
{
highp float foo;
float tmpvar_1;
tmpvar_1 = 1.0;
foo = tmpvar_1;
highp float tmpvar_2;
tmpvar_2 = (foo + 1.0);
foo = tmpvar_2;
highp float tmpvar_3;
tmpvar_3 = (foo + 100000.0);
foo = tmpvar_3;
highp float tmpvar_4;
tmpvar_4 = (foo + -(0.001));
foo = tmpvar_4;
highp float tmpvar_5;
tmpvar_5 = (foo + 2.0);
foo = tmpvar_5;
highp float tmpvar_6;
tmpvar_6 = (foo + 3.0);
foo = tmpvar_6;
highp vec4 tmpvar_7;
tmpvar_7 = vec4(foo);
return tmpvar_7;
}
void main ()
{
mediump vec4 xl_retval;
mediump vec4 tmpvar_1;
tmpvar_1 = xlat_main ();
mediump vec4 tmpvar_2;
tmpvar_2 = tmpvar_1;
xl_retval = tmpvar_2;
mediump vec4 tmpvar_3;
tmpvar_3 = xl_retval.xyzw;
mediump vec4 tmpvar_4;
tmpvar_4 = tmpvar_3;
gl_FragData[0] = tmpvar_4;
}