aboutsummaryrefslogtreecommitdiff
path: root/Test/matrixError.vert
diff options
context:
space:
mode:
authorJohn Kessenich <cepheus@frii.com>2013-02-04 23:54:58 +0000
committerJohn Kessenich <cepheus@frii.com>2013-02-04 23:54:58 +0000
commitf0fdc53e2abc2806865842737e124708c0ea193f (patch)
tree65087cdaa40caf8eefb9a1fa6a023027c5f64bbd /Test/matrixError.vert
parent1c809955ba38e14aaf37d4e19c165963312f3f1a (diff)
downloadglslang-f0fdc53e2abc2806865842737e124708c0ea193f.tar.gz
Implement non-square matrices, and make a few type improvements. Cleaned up a few old issues. Added two tests.
Details - added all the new non-square types - separated concepts of matrix size and vector size - removed VS 6.0 comments/workarounds - removed obsolete concept of matrix fields git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20436 e7fa87d3-cd2b-0410-9028-fcbf551c1848
Diffstat (limited to 'Test/matrixError.vert')
-rw-r--r--Test/matrixError.vert22
1 files changed, 22 insertions, 0 deletions
diff --git a/Test/matrixError.vert b/Test/matrixError.vert
new file mode 100644
index 00000000..eb4b439b
--- /dev/null
+++ b/Test/matrixError.vert
@@ -0,0 +1,22 @@
+#version 120
+
+attribute vec3 v3;
+
+uniform mat3x2 m32;
+
+const mat2x4 m24 = mat2x4(1.0, 2.0,
+ 3.0, 4.0,
+ 3.0, 4.0,
+ 3.0, 4.0, 5.0);
+
+void main()
+{
+ mat2x3 m23;
+ vec3 a, b;
+
+ a = v3 * m23;
+ b = m32 * v3;
+ m23.xy;
+
+ gl_Position = vec4(m23 * m32 * v3, m24[2][4]);
+}