From 38ae2658c4b4add786d39f4f323490de8f57b5cf Mon Sep 17 00:00:00 2001 From: Tom Gall Date: Mon, 7 Jan 2013 14:45:29 -0600 Subject: gles2: glslparser tests ported to glsl es 1.00 --- .../array-negate.vert | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-negate.vert (limited to 'tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-negate.vert') diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-negate.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-negate.vert new file mode 100644 index 00000000..567b3d35 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-negate.vert @@ -0,0 +1,25 @@ +/* [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: + * + * "In total, only the following operators are allowed to operate on + * arrays and structures as whole entities: + * + * field or method selector . + * equality == != + * assignment = + * indexing (arrays only) []" + */ + + +uniform vec4 a[2]; +uniform vec4 b[2]; + +void main() +{ + gl_Position = vec4(-a == b); +} -- cgit v1.2.3