bgfx/3rdparty/glsl-optimizer/tests/fragment/in-struct-ret-vals-ir.txt
2012-10-07 20:41:18 -07:00

48 lines
865 B
Text

struct v2f {
vec4 pos;
vec2 uv;
vec4 color;
};
vec4 xlat_main (
in v2f i_1
)
{
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;
}
void main ()
{
v2f xlt_i_5;
vec4 xl_retval_6;
vec4 tmpvar_7;
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;
tmpvar_9 = tmpvar_8;
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;
}