diff mbox

[3/8] glsl-1.30: test precision qualifier with sampler array

Message ID 1434802475-4020-3-git-send-email-t_arceri@yahoo.com.au
State New
Headers show

Commit Message

'Timothy Arceri' via Patchwork Forward June 20, 2015, 12:14 p.m. UTC
---
 .../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 mbox

Patch

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);
+}