ARB_ubo/referenced-by-shader: pass if shader compiler moves UBOs between shaders
[piglit.git] / tests / spec / glsl-1.10 / preprocessor / if-0-define-macro.shader_test
blob8e0f21c7373869e5d2b366534816ba09e6468deb
1 [require]
2 GLSL >= 1.10
4 [fragment shader]
5 #define BAR(x) x
6 #if 0
7 #define FOO(x) BAR(x)
8 #else
9 #define FOO(x) (BAR(x) + BAR(x))
10 #endif
11 void main()
13         gl_FragColor = vec4(FOO(0.25));
17 [test]
18 draw rect -1 -1 2 2
19 relative probe rgba (0.5, 0.5) (0.5, 0.5, 0.5, 0.5)