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

24 lines
519 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
struct v2f {
highp vec4 pos;
highp vec2 uv;
highp vec4 color;
};
mediump vec4 xlat_main( in v2f i );
mediump vec4 xlat_main( in v2f i ) {
mediump vec4 c;
c = i.color;
c.xy += i.uv;
return c;
}
varying highp vec2 xlv_TEXCOORD0;
varying highp vec4 xlv_COLOR;
void main() {
mediump vec4 xl_retval;
v2f xlt_i;
2014-02-11 02:06:13 -05:00
xlt_i.pos = vec4(0.0);
xlt_i.uv = vec2( xlv_TEXCOORD0);
xlt_i.color = vec4( xlv_COLOR);
2012-04-03 23:30:07 -04:00
xl_retval = xlat_main( xlt_i);
2014-02-11 02:06:13 -05:00
gl_FragData[0] = vec4( xl_retval);
2012-04-03 23:30:07 -04:00
}