ARB_ubo/referenced-by-shader: pass if shader compiler moves UBOs between shaders
[piglit.git] / tests / spec / glsl-1.10 / preprocessor / if-1-define-nested-macro.shader_test
bloba71b9fb5fc385f09f7e4c5836a324f4bf4f7e622
1 [require]
2 GLSL >= 1.10
4 [fragment shader]
5 #define BAR(x) x
6 #if 1
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.25, 0.25, 0.25, 0.25)