]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/member_assignment.glsl
Add a unit test framework and some tests for the GLSL compiler
[libs/gl.git] / tests / glsl / member_assignment.glsl
diff --git a/tests/glsl/member_assignment.glsl b/tests/glsl/member_assignment.glsl
new file mode 100644 (file)
index 0000000..8444cfc
--- /dev/null
@@ -0,0 +1,22 @@
+#pragma MSP stage(vertex)
+void main()
+{
+       vec4 p;
+       p.x = 1.0;
+       p.y = 0.0;
+       p.z = 2.0;
+       p.w = 1.0;
+       gl_Position = p;
+}
+
+/* Expected output: vertex
+void main()
+{
+       vec4 p;
+       p.x = 1.0;
+       p.y = 0.0;
+       p.z = 2.0;
+       p.w = 1.0;
+       gl_Position = p;
+}
+*/