summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-03-29 17:19:13 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-29 17:19:13 -0700
commit8901eeefc94e4211c87ff13e951113749fc495de (patch)
tree41ab15bfb36cc3a1e1e06233409975ec85d98740 /tests
parentfb9f5b0675bd714fd6d6325479f62435aaabc2ee (diff)
Add several tests for vertex shader attributes
Diffstat (limited to 'tests')
-rw-r--r--tests/attribute-01.glsl7
-rw-r--r--tests/attribute-02.glsl7
-rw-r--r--tests/attribute-03.glsl7
-rw-r--r--tests/attribute-04.glsl7
-rw-r--r--tests/attribute-05.glsl7
-rw-r--r--tests/attribute-06.glsl7
-rw-r--r--tests/attribute-07.glsl7
-rw-r--r--tests/attribute-08.glsl7
-rw-r--r--tests/attribute-09.glsl7
-rw-r--r--tests/attribute-10.glsl8
-rw-r--r--tests/attribute-11.glsl8
11 files changed, 79 insertions, 0 deletions
diff --git a/tests/attribute-01.glsl b/tests/attribute-01.glsl
new file mode 100644
index 0000000000..18e9e4468a
--- /dev/null
+++ b/tests/attribute-01.glsl
@@ -0,0 +1,7 @@
+/* FAIL - attribute cannot have type int */
+attribute int i;
+
+void main()
+{
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/attribute-02.glsl b/tests/attribute-02.glsl
new file mode 100644
index 0000000000..6b6df74d25
--- /dev/null
+++ b/tests/attribute-02.glsl
@@ -0,0 +1,7 @@
+/* FAIL - attribute cannot have type ivec2 */
+attribute ivec2 i;
+
+void main()
+{
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/attribute-03.glsl b/tests/attribute-03.glsl
new file mode 100644
index 0000000000..870de9e814
--- /dev/null
+++ b/tests/attribute-03.glsl
@@ -0,0 +1,7 @@
+/* FAIL - attribute cannot have type ivec3 */
+attribute ivec3 i;
+
+void main()
+{
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/attribute-04.glsl b/tests/attribute-04.glsl
new file mode 100644
index 0000000000..14af2fcaad
--- /dev/null
+++ b/tests/attribute-04.glsl
@@ -0,0 +1,7 @@
+/* FAIL - attribute cannot have type ivec4 */
+attribute ivec4 i;
+
+void main()
+{
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/attribute-05.glsl b/tests/attribute-05.glsl
new file mode 100644
index 0000000000..18822c7854
--- /dev/null
+++ b/tests/attribute-05.glsl
@@ -0,0 +1,7 @@
+/* FAIL - attribute cannot have type bool */
+attribute bool i;
+
+void main()
+{
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/attribute-06.glsl b/tests/attribute-06.glsl
new file mode 100644
index 0000000000..f18027b81a
--- /dev/null
+++ b/tests/attribute-06.glsl
@@ -0,0 +1,7 @@
+/* FAIL - attribute cannot have type bvec2 */
+attribute bvec2 i;
+
+void main()
+{
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/attribute-07.glsl b/tests/attribute-07.glsl
new file mode 100644
index 0000000000..0af13ba84b
--- /dev/null
+++ b/tests/attribute-07.glsl
@@ -0,0 +1,7 @@
+/* FAIL - attribute cannot have type bvec3 */
+attribute bvec3 i;
+
+void main()
+{
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/attribute-08.glsl b/tests/attribute-08.glsl
new file mode 100644
index 0000000000..b069c04d1b
--- /dev/null
+++ b/tests/attribute-08.glsl
@@ -0,0 +1,7 @@
+/* FAIL - attribute cannot have type bvec4 */
+attribute bvec4 i;
+
+void main()
+{
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/attribute-09.glsl b/tests/attribute-09.glsl
new file mode 100644
index 0000000000..6a607244b9
--- /dev/null
+++ b/tests/attribute-09.glsl
@@ -0,0 +1,7 @@
+/* FAIL - attribute cannot have array type in GLSL 1.10 */
+attribute vec4 i[10];
+
+void main()
+{
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/attribute-10.glsl b/tests/attribute-10.glsl
new file mode 100644
index 0000000000..6f5ef63a01
--- /dev/null
+++ b/tests/attribute-10.glsl
@@ -0,0 +1,8 @@
+#version 120
+/* FAIL - attribute cannot have array type in GLSL 1.20 */
+attribute vec4 i[10];
+
+void main()
+{
+ gl_Position = vec4(1.0);
+}
diff --git a/tests/attribute-11.glsl b/tests/attribute-11.glsl
new file mode 100644
index 0000000000..c1e6901431
--- /dev/null
+++ b/tests/attribute-11.glsl
@@ -0,0 +1,8 @@
+#version 130
+/* PASS */
+attribute vec4 i[10];
+
+void main()
+{
+ gl_Position = vec4(1.0);
+}