aboutsummaryrefslogtreecommitdiff
path: root/Test/precision.frag
diff options
context:
space:
mode:
authorJohn Kessenich <cepheus@frii.com>2013-04-05 04:05:39 +0000
committerJohn Kessenich <cepheus@frii.com>2013-04-05 04:05:39 +0000
commitebeeece6a7c84b468982985a464f12f77b34e155 (patch)
tree200cc025b14327894b6bcb1c708c253eac8fa7f5 /Test/precision.frag
parentae722a6230e7637607e52f0796d1d73a9c06bb70 (diff)
downloadglslang-ebeeece6a7c84b468982985a464f12f77b34e155.tar.gz
Add uint type (big change). For both int/uint, add the operators >>, <<, &, |, and ^. Also added unsigned literals and uint precision support. Also fixed how int/uint literal underflow/overflow is handled.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21054 e7fa87d3-cd2b-0410-9028-fcbf551c1848
Diffstat (limited to 'Test/precision.frag')
-rw-r--r--Test/precision.frag6
1 files changed, 5 insertions, 1 deletions
diff --git a/Test/precision.frag b/Test/precision.frag
index c9b1d7ab..c4339ae0 100644
--- a/Test/precision.frag
+++ b/Test/precision.frag
@@ -10,7 +10,11 @@ lowp vec2 foo(mediump vec3 mv3)
int global_medium;
-precision highp int;
+precision highp int;
+precision highp ivec2; // ERROR
+precision mediump int[2]; // ERROR
+precision lowp uint; // ERROR
+precision mediump vec4; // ERROR
int global_high;