[Piglit] [PATCH 06/11] arb_shader_subroutine: Test attaching multiple subroutine types

Chris Forbes chrisf at ijw.co.nz
Sun Aug 10 04:06:57 PDT 2014


Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
 .../compiler/multiple-subroutine-types.vert                | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 tests/spec/arb_shader_subroutine/compiler/multiple-subroutine-types.vert

diff --git a/tests/spec/arb_shader_subroutine/compiler/multiple-subroutine-types.vert b/tests/spec/arb_shader_subroutine/compiler/multiple-subroutine-types.vert
new file mode 100644
index 0000000..959486e
--- /dev/null
+++ b/tests/spec/arb_shader_subroutine/compiler/multiple-subroutine-types.vert
@@ -0,0 +1,14 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// require_extensions: GL_ARB_shader_subroutine
+// [end config]
+
+#version 150
+#extension GL_ARB_shader_subroutine: require
+
+subroutine void func_type_a();
+subroutine void func_type_b();
+
+/* A subroutine matching both types */
+subroutine (func_type_a, func_type_b) void f() {}
-- 
2.0.4



More information about the Piglit mailing list