aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-not-equal-matrix.vert
diff options
context:
space:
mode:
authorTom Gall <tom.gall@linaro.org>2013-01-07 14:45:29 -0600
committerTom Gall <tom.gall@linaro.org>2013-01-23 14:08:50 -0600
commit38ae2658c4b4add786d39f4f323490de8f57b5cf (patch)
treeb212256b4fbaef17cbec967f280545308de35967 /tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-not-equal-matrix.vert
parent83aebec9883fd874d8c02aeeeb77745faf0fc756 (diff)
gles2: glslparser tests ported to glsl es 1.00glsl
Diffstat (limited to 'tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-not-equal-matrix.vert')
-rw-r--r--tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-not-equal-matrix.vert22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-not-equal-matrix.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-not-equal-matrix.vert
new file mode 100644
index 00000000..88bda2ae
--- /dev/null
+++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-not-equal-matrix.vert
@@ -0,0 +1,22 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * glsles_version: 1.00
+ * [end config]
+ *
+ * From page 35 (page 41 of the PDF) of the GLSL 1.20 spec:
+ *
+ * "The equality operators and assignment operator are only allowed if the
+ * two operands are same size and type....Both array operands must be
+ * explicitly sized. When using the equality operators ... two arrays are
+ * equal if and only if all the elements are element-wise equal.
+ */
+
+
+uniform vec4 a[4];
+uniform mat4 b;
+
+void main()
+{
+ gl_Position = vec4(a != b);
+}