[Piglit] [PATCH 2/4] Tests that a uniform block array must specify an array size.

Nicholas Mack nichmack at gmail.com
Mon Jul 29 15:25:11 PDT 2013


GLSLangSpec.1.50.11, 4.3.7 Interface Blocks:
"As the array size indicates the number of buffer objects needed,
 uniform block array declarations must specify an array size."
---
 ...blocks-uniform-block-arrays-specified-size.vert | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 tests/spec/glsl-1.50/compiler/interface-blocks-uniform-block-arrays-specified-size.vert

diff --git a/tests/spec/glsl-1.50/compiler/interface-blocks-uniform-block-arrays-specified-size.vert b/tests/spec/glsl-1.50/compiler/interface-blocks-uniform-block-arrays-specified-size.vert
new file mode 100644
index 0000000..37e1850
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/interface-blocks-uniform-block-arrays-specified-size.vert
@@ -0,0 +1,23 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: true
+// [end config]
+//
+// Tests that a uniform block array must specify an array size.
+//
+// GLSLangSpec.1.50.11, 4.3.7 Interface Blocks:
+// "As the array size indicates the number of buffer objects needed,
+//  uniform block array declarations must specify an array size."
+
+#version 150
+
+uniform Block {
+    float a;
+	vec3 b;
+} array_blocks[];
+
+void main()
+{
+}
+
-- 
1.8.3.1



More information about the Piglit mailing list