summaryrefslogtreecommitdiff
path: root/tests/matrix-08.glsl
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-03-24 17:42:59 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-24 17:42:59 -0700
commite4fca97afd27f72d056e245aaa5761579ee78850 (patch)
treee151e5aecc9438a5ff1bf4f630829221de326d35 /tests/matrix-08.glsl
parent3209c4e3692eaa9468aadcd21ce402e6b0d5b7dd (diff)
Add some matrix math tests
Diffstat (limited to 'tests/matrix-08.glsl')
-rw-r--r--tests/matrix-08.glsl19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/matrix-08.glsl b/tests/matrix-08.glsl
new file mode 100644
index 0000000000..38138d22de
--- /dev/null
+++ b/tests/matrix-08.glsl
@@ -0,0 +1,19 @@
+#version 120
+/* PASS */
+
+uniform mat2x3 a;
+uniform mat3x2 b;
+uniform mat3x3 c;
+uniform mat3x3 d;
+
+void main()
+{
+ mat3x3 x;
+
+ /* Multiplying a 2 column, 3 row matrix with a 3 column, 2 row matrix
+ * results in a 3 column, 3 row matrix.
+ */
+ x = (a * b) + c / d;
+
+ gl_Position = gl_Vertex;
+}