bgfx/3rdparty/glsl-optimizer/tests/fragment/pp-basic-in.txt

18 lines
223 B
Plaintext
Raw Normal View History

2012-04-04 07:30:07 +04:00
#define FRAGMENT
#ifdef VERTEX
foo bar baz
#endif
#ifdef FRAGMENT
vec4 xlat_main () {
return vec4(1.0);
}
#endif
void main() {
vec4 xl_retval;
xl_retval = xlat_main();
gl_FragData[0] = vec4(xl_retval);
}