diff options
-rw-r--r-- | tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag | 17 | ||||
-rw-r--r-- | tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.vert | 18 |
2 files changed, 35 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag b/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag new file mode 100644 index 00000000..e72eb045 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag @@ -0,0 +1,17 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.20 + * glsles_version: 1.00 + * check_link: true + * [end config] + * + * This test verifies that the fragment shader special variable + * gl_ClipDistance (defined in GLSL 1.30) is not available when the + * GLSL version is 1.20. + */ + +varying float gl_ClipDistance[2]; + +void main() +{ +} diff --git a/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.vert b/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.vert new file mode 100644 index 00000000..108f9122 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.vert @@ -0,0 +1,18 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.20 + * glsles_version: 1.00 + * check_link: true + * [end config] + * + * This test verifies that the vertex shader special variable + * gl_ClipDistance (defined in GLSL 1.30) is not available when the + * GLSL version is 1.20. + */ + +varying float gl_ClipDistance[2]; + +void main() +{ + gl_Position = vec4(0.0); +} |