bgfx/3rdparty/glsl-optimizer/tests/fragment/in-vals-ret-vals-irES.txt

37 lines
724 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
varying highp vec4 xlv_COLOR;
varying highp vec2 xlv_TEXCOORD0;
mediump vec4 xlat_main (
in highp vec2 uv,
in highp vec4 color
)
{
mediump vec4 c;
highp vec4 tmpvar_1;
tmpvar_1 = color;
c = tmpvar_1;
highp vec2 tmpvar_2;
tmpvar_2 = (c.xy + uv);
c.xy = tmpvar_2.xy.xy;
return c;
}
void main ()
{
mediump vec4 xl_retval;
highp vec2 tmpvar_1;
tmpvar_1 = xlv_TEXCOORD0.xy;
highp vec4 tmpvar_2;
tmpvar_2 = xlv_COLOR.xyzw;
mediump vec4 tmpvar_3;
tmpvar_3 = xlat_main (tmpvar_1, tmpvar_2);
mediump vec4 tmpvar_4;
tmpvar_4 = tmpvar_3;
xl_retval = tmpvar_4;
mediump vec4 tmpvar_5;
tmpvar_5 = xl_retval.xyzw;
mediump vec4 tmpvar_6;
tmpvar_6 = tmpvar_5;
gl_FragData[0] = tmpvar_6;
}