]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/expression_inline.glsl
Add a unit test framework and some tests for the GLSL compiler
[libs/gl.git] / tests / glsl / expression_inline.glsl
diff --git a/tests/glsl/expression_inline.glsl b/tests/glsl/expression_inline.glsl
new file mode 100644 (file)
index 0000000..a730e7d
--- /dev/null
@@ -0,0 +1,15 @@
+#pragma MSP stage(vertex)
+layout(location=0) in vec4 position;
+void main()
+{
+       vec4 p = position*2.0-1.0;
+       gl_Position = p;
+}
+
+/* Expected output: vertex
+layout(location=0) in vec4 position;
+void main()
+{
+       gl_Position = position*2.0-1.0;
+}
+*/