[v2,2/6] nv_non_square_matrices: Add positive compile tests

Submitted by Rafal Mielniczuk on Feb. 27, 2014, 2:02 p.m.

Details

Message ID 1393509748-12864-3-git-send-email-rafal.mielniczuk2@gmail.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Rafal Mielniczuk Feb. 27, 2014, 2:02 p.m.
These tests check matrix and vector multiplication

Signed-off-by: Rafal Mielniczuk <rafal.mielniczuk2@gmail.com>
---
 .../compiler/mat2x3-vector-multiplication.vert               | 12 ++++++++++++
 .../compiler/mat2x4-vector-multiplication.vert               | 12 ++++++++++++
 .../compiler/mat3x2-vector-multiplication.vert               | 12 ++++++++++++
 .../compiler/mat3x4-vector-multiplication.vert               | 12 ++++++++++++
 .../compiler/mat4x2-vector-multiplication.vert               | 12 ++++++++++++
 .../compiler/mat4x3-vector-multiplication.vert               | 12 ++++++++++++
 6 files changed, 72 insertions(+)
 create mode 100644 tests/spec/nv_non_square_matrices/compiler/mat2x3-vector-multiplication.vert
 create mode 100644 tests/spec/nv_non_square_matrices/compiler/mat2x4-vector-multiplication.vert
 create mode 100644 tests/spec/nv_non_square_matrices/compiler/mat3x2-vector-multiplication.vert
 create mode 100644 tests/spec/nv_non_square_matrices/compiler/mat3x4-vector-multiplication.vert
 create mode 100644 tests/spec/nv_non_square_matrices/compiler/mat4x2-vector-multiplication.vert
 create mode 100644 tests/spec/nv_non_square_matrices/compiler/mat4x3-vector-multiplication.vert

Patch hide | download patch | download mbox

diff --git a/tests/spec/nv_non_square_matrices/compiler/mat2x3-vector-multiplication.vert b/tests/spec/nv_non_square_matrices/compiler/mat2x3-vector-multiplication.vert
new file mode 100644
index 0000000..3250a54
--- /dev/null
+++ b/tests/spec/nv_non_square_matrices/compiler/mat2x3-vector-multiplication.vert
@@ -0,0 +1,12 @@ 
+// [config]
+// expect_result: pass
+// glsl_version: 1.00
+// require_extensions: GL_NV_non_square_matrices
+// [end config]
+#version 100
+#extension GL_NV_non_square_matrices: require
+uniform mat2x3 u;
+attribute vec2 v;
+void main() {
+    gl_Position = vec4(u * v, 1.0);
+}
diff --git a/tests/spec/nv_non_square_matrices/compiler/mat2x4-vector-multiplication.vert b/tests/spec/nv_non_square_matrices/compiler/mat2x4-vector-multiplication.vert
new file mode 100644
index 0000000..929fd94
--- /dev/null
+++ b/tests/spec/nv_non_square_matrices/compiler/mat2x4-vector-multiplication.vert
@@ -0,0 +1,12 @@ 
+// [config]
+// expect_result: pass
+// glsl_version: 1.00
+// require_extensions: GL_NV_non_square_matrices
+// [end config]
+#version 100
+#extension GL_NV_non_square_matrices: require
+uniform mat2x4 u;
+attribute vec2 v;
+void main() {
+    gl_Position = vec4(u * v);
+}
diff --git a/tests/spec/nv_non_square_matrices/compiler/mat3x2-vector-multiplication.vert b/tests/spec/nv_non_square_matrices/compiler/mat3x2-vector-multiplication.vert
new file mode 100644
index 0000000..f452d68
--- /dev/null
+++ b/tests/spec/nv_non_square_matrices/compiler/mat3x2-vector-multiplication.vert
@@ -0,0 +1,12 @@ 
+// [config]
+// expect_result: pass
+// glsl_version: 1.00
+// require_extensions: GL_NV_non_square_matrices
+// [end config]
+#version 100
+#extension GL_NV_non_square_matrices: require
+uniform mat3x2 u;
+attribute vec3 v;
+void main() {
+    gl_Position = vec4(u * v, 1.0, 1.0);
+}
diff --git a/tests/spec/nv_non_square_matrices/compiler/mat3x4-vector-multiplication.vert b/tests/spec/nv_non_square_matrices/compiler/mat3x4-vector-multiplication.vert
new file mode 100644
index 0000000..f787748
--- /dev/null
+++ b/tests/spec/nv_non_square_matrices/compiler/mat3x4-vector-multiplication.vert
@@ -0,0 +1,12 @@ 
+// [config]
+// expect_result: pass
+// glsl_version: 1.00
+// require_extensions: GL_NV_non_square_matrices
+// [end config]
+#version 100
+#extension GL_NV_non_square_matrices: require
+uniform mat3x4 u;
+attribute vec3 v;
+void main() {
+    gl_Position = vec4(u * v);
+}
diff --git a/tests/spec/nv_non_square_matrices/compiler/mat4x2-vector-multiplication.vert b/tests/spec/nv_non_square_matrices/compiler/mat4x2-vector-multiplication.vert
new file mode 100644
index 0000000..1c9f0a8
--- /dev/null
+++ b/tests/spec/nv_non_square_matrices/compiler/mat4x2-vector-multiplication.vert
@@ -0,0 +1,12 @@ 
+// [config]
+// expect_result: pass
+// glsl_version: 1.00
+// require_extensions: GL_NV_non_square_matrices
+// [end config]
+#version 100
+#extension GL_NV_non_square_matrices: require
+uniform mat4x2 u;
+attribute vec4 v;
+void main() {
+    gl_Position = vec4(u * v, 1.0, 1.0);
+}
diff --git a/tests/spec/nv_non_square_matrices/compiler/mat4x3-vector-multiplication.vert b/tests/spec/nv_non_square_matrices/compiler/mat4x3-vector-multiplication.vert
new file mode 100644
index 0000000..ce1e8f0
--- /dev/null
+++ b/tests/spec/nv_non_square_matrices/compiler/mat4x3-vector-multiplication.vert
@@ -0,0 +1,12 @@ 
+// [config]
+// expect_result: pass
+// glsl_version: 1.00
+// require_extensions: GL_NV_non_square_matrices
+// [end config]
+#version 100
+#extension GL_NV_non_square_matrices: require
+uniform mat4x3 u;
+attribute vec4 v;
+void main() {
+    gl_Position = vec4(u * v, 1.0);
+}