summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2015-10-05 12:46:40 +0300
committerTapani Pälli <tapani.palli@intel.com>2015-10-05 14:41:37 +0300
commitec176b3bc5bb231249de981093ff5ca4ee143544 (patch)
treefd3a576c2ac3509191dd5cad31b4936e83f86091
parent6ea580a6f0bba42cb65075af9f7d0efac9323827 (diff)
arb_shader_storage_buffer_object: global scope binding qualifier test
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
-rw-r--r--tests/spec/arb_shader_storage_buffer_object/compiler/global-scope-binding-qualifier.frag20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/spec/arb_shader_storage_buffer_object/compiler/global-scope-binding-qualifier.frag b/tests/spec/arb_shader_storage_buffer_object/compiler/global-scope-binding-qualifier.frag
new file mode 100644
index 000000000..6b732d9eb
--- /dev/null
+++ b/tests/spec/arb_shader_storage_buffer_object/compiler/global-scope-binding-qualifier.frag
@@ -0,0 +1,20 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_shader_storage_buffer_object
+// [end config]
+
+/* From the GLSL 4.50 spec, section 4.4.5:
+ *
+ * "It is a compile-time error to specify the binding identifier for
+ * the global scope or for block member declarations."
+ */
+
+#version 150
+#extension GL_ARB_shader_storage_buffer_object: require
+
+layout(binding=1) buffer;
+
+void main()
+{
+}