ext_gpu_shader4: add compiler tests for everything
[piglit.git] / tests / spec / glsl-1.10 / preprocessor / if-1-define-macro.shader_test
blob4539ca68921fb33ab9bc70c6e053c61fe8d3bff7
1 [require]
2 GLSL >= 1.10
4 [fragment shader]
5 #if 1
6 #define FOO(x) x
7 #else
8 #define FOO(x) (0.5 * (x))
9 #endif
10 void main()
12         gl_FragColor = vec4(FOO(0.25));
16 [test]
17 draw rect -1 -1 2 2
18 relative probe rgba (0.5, 0.5) (0.25, 0.25, 0.25, 0.25)