perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / arb_shading_language_include / execution / path_test.shader_test
blob651661d8db4afd91e83c5eb95206ef12b41ae7b1
1 # Basic test to make sure the path of the shader include
2 # is processed correctly. Specifically here we are testing
3 # '.' and '..' act as expected. Here the second shader
4 # include should replace the first as they should end up
5 # with the same path.
6 [require]
7 GLSL >= 1.10
8 GL_ARB_shading_language_include
10 [shader include]
11 /test path/./to/../test_include.shader
13 void main()
15         gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
18 [shader include]
19 /test path/to3/../test_include.shader
21 void main()
23         gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
26 [fragment shader]
27 #extension GL_ARB_shading_language_include: enable
29 #include "/test path/./to/../test_include.shader"
32 [test]
33 draw rect -1 -1 2 2
34 relative probe rgba (0.5, 0.5) (0.0, 1.0, 0.0, 1.0)