[Piglit] [PATCH 1/2] GLSL 1.50: Test that version 140 and version 150 shaders can be linked together

Nicholas Mack nichmack at gmail.com
Fri Sep 27 11:55:08 PDT 2013


---
 .../glsl-1.50/linker/versions-mingled.shader_test  | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 tests/spec/glsl-1.50/linker/versions-mingled.shader_test

diff --git a/tests/spec/glsl-1.50/linker/versions-mingled.shader_test b/tests/spec/glsl-1.50/linker/versions-mingled.shader_test
new file mode 100644
index 0000000..543a778
--- /dev/null
+++ b/tests/spec/glsl-1.50/linker/versions-mingled.shader_test
@@ -0,0 +1,29 @@
+# Tests that GLSL 1.40 and GLSL 1.50 shaders may be linked together
+#
+# GLSL 1.50 Spec, 3.3 ():
+# "Shaders declaring version 1.40 of the shading language can be linked with
+#  shaders declaring version 1.50 in the same program."
+[require]
+GLSL >= 1.50
+
+[vertex shader]
+#version 140
+
+in vec4 a;
+
+void main()
+{
+	gl_Position = a;
+}
+
+[fragment shader]
+#version 150
+
+void main()
+{
+	gl_FragColor = vec4(1.);
+}
+
+[test]
+
+
-- 
1.8.3.1



More information about the Piglit mailing list