summaryrefslogtreecommitdiff
path: root/generated_tests
diff options
context:
space:
mode:
Diffstat (limited to 'generated_tests')
-rw-r--r--generated_tests/templates/gen_extensions_defined/disabled.glsl.mako4
-rw-r--r--generated_tests/templates/gen_extensions_defined/enabled.glsl.mako4
-rw-r--r--generated_tests/templates/gen_extensions_defined/undefined-require.glsl.mako4
3 files changed, 12 insertions, 0 deletions
diff --git a/generated_tests/templates/gen_extensions_defined/disabled.glsl.mako b/generated_tests/templates/gen_extensions_defined/disabled.glsl.mako
index f4fc92f56..68e9a8dcb 100644
--- a/generated_tests/templates/gen_extensions_defined/disabled.glsl.mako
+++ b/generated_tests/templates/gen_extensions_defined/disabled.glsl.mako
@@ -33,6 +33,10 @@
#extension ${ext} : require
% endfor
+% if version.is_es:
+precision mediump float;
+% endif
+
#if defined ${extension}
# error ${extension} is defined, but should not be
#endif
diff --git a/generated_tests/templates/gen_extensions_defined/enabled.glsl.mako b/generated_tests/templates/gen_extensions_defined/enabled.glsl.mako
index 09a82fab1..c7bd33e05 100644
--- a/generated_tests/templates/gen_extensions_defined/enabled.glsl.mako
+++ b/generated_tests/templates/gen_extensions_defined/enabled.glsl.mako
@@ -34,6 +34,10 @@
#extension ${ext} : require
% endfor
+% if version.is_es:
+precision mediump float;
+% endif
+
#if !defined ${extension}
# error ${extension} is not defined
#elif ${extension} != 1
diff --git a/generated_tests/templates/gen_extensions_defined/undefined-require.glsl.mako b/generated_tests/templates/gen_extensions_defined/undefined-require.glsl.mako
index 5edec34c6..32e9043d1 100644
--- a/generated_tests/templates/gen_extensions_defined/undefined-require.glsl.mako
+++ b/generated_tests/templates/gen_extensions_defined/undefined-require.glsl.mako
@@ -34,4 +34,8 @@
% endfor
#extension ${extension} : require
+% if version.is_es:
+precision mediump float;
+% endif
+
float foo() { return 0.0; }