[Piglit] [PATCH 10/12] arb_shading_language_420pack: Test that parameter qualifiers can be ordered arbitrarily.

Matt Turner mattst88 at gmail.com
Thu Jul 18 13:35:06 PDT 2013


---
 .../relaxed-parameter-qualifier-ordering.vert      | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 tests/spec/arb_shading_language_420pack/compiler/qualifiers/relaxed-parameter-qualifier-ordering.vert

diff --git a/tests/spec/arb_shading_language_420pack/compiler/qualifiers/relaxed-parameter-qualifier-ordering.vert b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/relaxed-parameter-qualifier-ordering.vert
new file mode 100644
index 0000000..a89cb2e
--- /dev/null
+++ b/tests/spec/arb_shading_language_420pack/compiler/qualifiers/relaxed-parameter-qualifier-ordering.vert
@@ -0,0 +1,31 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * require_extensions: GL_ARB_shading_language_420pack
+ * [end config]
+ *
+ * From the GL_ARB_shading_language_420pack spec:
+ *
+ *       "parameter-qualifiers :
+ *           empty
+ *           list of parameter-qualifier
+ *
+ *        parameter-qualifier :
+ *           empty [sic]
+ *           const
+ *           in
+ *           out
+ *           inout
+ *           memory qualifier
+ *           precision qualifier"
+ *
+ * Test that parameter qualifiers may be ordered arbitrarily.
+ */
+#version 130
+#extension GL_ARB_shading_language_420pack: enable
+void a(in const float x) {}
+void b(out const float x) {}
+void c(inout const float x) {}
+void d(const in float x) {}
+void e(const out float x) {}
+void f(const inout float x) {}
-- 
1.8.1.5



More information about the Piglit mailing list