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

49 lines
865 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
struct v2f {
vec4 pos;
vec2 uv;
vec4 color;
};
vec4 xlat_main (
2012-10-07 23:41:18 -04:00
in v2f i_1
2012-04-03 23:30:07 -04:00
)
{
2012-10-07 23:41:18 -04:00
vec4 c_2;
vec4 tmpvar_3;
tmpvar_3 = i_1.color;
c_2 = tmpvar_3;
vec2 tmpvar_4;
tmpvar_4 = (c_2.xy + i_1.uv);
c_2.xy = tmpvar_4.xy.xy;
return c_2;
2012-04-03 23:30:07 -04:00
}
void main ()
{
2012-10-07 23:41:18 -04:00
v2f xlt_i_5;
vec4 xl_retval_6;
2012-04-03 23:30:07 -04:00
vec4 tmpvar_7;
2012-10-07 23:41:18 -04:00
tmpvar_7 = vec4(0.0, 0.0, 0.0, 0.0);
xlt_i_5.pos = tmpvar_7;
vec2 tmpvar_8;
tmpvar_8 = gl_TexCoord[0].xy;
vec2 tmpvar_9;
2012-04-03 23:30:07 -04:00
tmpvar_9 = tmpvar_8;
2012-10-07 23:41:18 -04:00
xlt_i_5.uv = tmpvar_9;
vec4 tmpvar_10;
tmpvar_10 = gl_Color.xyzw;
vec4 tmpvar_11;
tmpvar_11 = tmpvar_10;
xlt_i_5.color = tmpvar_11;
vec4 tmpvar_12;
tmpvar_12 = xlat_main (xlt_i_5);
vec4 tmpvar_13;
tmpvar_13 = tmpvar_12;
xl_retval_6 = tmpvar_13;
vec4 tmpvar_14;
tmpvar_14 = xl_retval_6.xyzw;
vec4 tmpvar_15;
tmpvar_15 = tmpvar_14;
gl_FragData[0] = tmpvar_15;
2012-04-03 23:30:07 -04:00
}