[Piglit] [PATCH 3/8] glsl-1.30: test precision qualifier with sampler array
Timothy Arceri
t_arceri at yahoo.com.au
Sat Jun 20 05:14:30 PDT 2015
---
.../qualifiers/sampler-precision-qualifier.frag | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 tests/spec/glsl-1.30/compiler/qualifiers/sampler-precision-qualifier.frag
diff --git a/tests/spec/glsl-1.30/compiler/qualifiers/sampler-precision-qualifier.frag b/tests/spec/glsl-1.30/compiler/qualifiers/sampler-precision-qualifier.frag
new file mode 100644
index 0000000..21913ca
--- /dev/null
+++ b/tests/spec/glsl-1.30/compiler/qualifiers/sampler-precision-qualifier.frag
@@ -0,0 +1,17 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * [end config]
+ *
+ * Precision qualifiers apply to floating point, integer and sampler
+ * types. Test to see if and array of samplers correctly compiles.
+ */
+#version 130
+
+uniform lowp sampler2D sampler[1];
+in highp vec2 coord;
+
+void main()
+{
+ gl_FragColor = texture2D(sampler[0], coord);
+}
--
2.1.0
More information about the Piglit
mailing list