[Piglit] [PATCH 4/8] glsl-1.50: add test for varying interface block
Jordan Justen
jordan.l.justen at intel.com
Sun Feb 17 10:31:23 PST 2013
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
.../interface-blocks-simple-varying.shader_test | 32 ++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 tests/spec/glsl-1.50/linker/interface-blocks-simple-varying.shader_test
diff --git a/tests/spec/glsl-1.50/linker/interface-blocks-simple-varying.shader_test b/tests/spec/glsl-1.50/linker/interface-blocks-simple-varying.shader_test
new file mode 100644
index 0000000..9bbb377
--- /dev/null
+++ b/tests/spec/glsl-1.50/linker/interface-blocks-simple-varying.shader_test
@@ -0,0 +1,32 @@
+[require]
+GLSL >= 1.50
+
+[vertex shader]
+#version 150
+
+out block {
+ vec4 a;
+} inst_a;
+
+void main()
+{
+ inst_a.a = vec4(0.0, 1.0, 0.0, 1.0);
+}
+
+[fragment shader]
+#version 150
+
+in block {
+ vec4 a;
+} inst_b;
+
+out vec4 color;
+
+void main()
+{
+ color = inst_b.a;
+}
+
+[test]
+link success
+
--
1.7.10.4
More information about the Piglit
mailing list