summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-3.00/compiler/no-default-float-precision.frag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/glsl-es-3.00/compiler/no-default-float-precision.frag')
-rw-r--r--tests/spec/glsl-es-3.00/compiler/no-default-float-precision.frag21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-3.00/compiler/no-default-float-precision.frag b/tests/spec/glsl-es-3.00/compiler/no-default-float-precision.frag
new file mode 100644
index 000000000..ebfa32548
--- /dev/null
+++ b/tests/spec/glsl-es-3.00/compiler/no-default-float-precision.frag
@@ -0,0 +1,21 @@
+// [config]
+// expect_result: fail
+// glsl_version: 3.00
+// check_link: true
+// [end config]
+//
+// From section 4.5.4 ("Default Precision Qualifiers") of the GLSL ES
+// 3.00 spec:
+//
+// "The fragment language has no default precision qualifier for
+// floating point types. Hence for float, floating point vector
+// and matrix variable declarations, either the declaration must
+// include a precision qualifier or the default float precision
+// must have been previously declared."
+
+#version 300 es
+
+void main()
+{
+ float f = 1.0;
+}