]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/no_op_conversion.glsl
Leave no-op constructors as they are
[libs/gl.git] / tests / glsl / no_op_conversion.glsl
diff --git a/tests/glsl/no_op_conversion.glsl b/tests/glsl/no_op_conversion.glsl
new file mode 100644 (file)
index 0000000..2e3ff57
--- /dev/null
@@ -0,0 +1,17 @@
+uniform mat4 mvp;
+
+#pragma MSP stage(vertex)
+layout(location=0) in vec4 position;
+int main()
+{
+       gl_Position = mat4(mvp)*vec4(position);
+}
+
+/* Expected output: vertex
+layout(location=0) uniform mat4 mvp;
+layout(location=0) in vec4 position;
+int main()
+{
+  gl_Position = mat4(mvp)*vec4(position);
+}
+*/