aboutsummaryrefslogtreecommitdiff
path: root/Test/precision.frag
diff options
context:
space:
mode:
authorJohn Kessenich <cepheus@frii.com>2013-04-07 20:04:12 +0000
committerJohn Kessenich <cepheus@frii.com>2013-04-07 20:04:12 +0000
commitad3663be1fba9be10e41bd2c9f77b67ef6050c75 (patch)
tree41978627983c5656eb7d0a1e622d80c25c07d3ca /Test/precision.frag
parent4ba94413d304eebef7e93e09e5657f11ca9ae822 (diff)
downloadglslang-ad3663be1fba9be10e41bd2c9f77b67ef6050c75.tar.gz
Add ES 300 built-ins trunc, round, roundEven, modf, isnan, isinf, floatBitsToInt, floatBitsToUint, intBitsToFloat, uintBitsToFloat, packSnorm2x16, unpackSnorm2x16, packUnorm2x16, unpackUnorm2x16, packHalf2x16, and unpackHalf2x16, and new form of min, max, clamp, and mix.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21063 e7fa87d3-cd2b-0410-9028-fcbf551c1848
Diffstat (limited to 'Test/precision.frag')
-rw-r--r--Test/precision.frag5
1 files changed, 5 insertions, 0 deletions
diff --git a/Test/precision.frag b/Test/precision.frag
index c4339ae0..7fe5af9f 100644
--- a/Test/precision.frag
+++ b/Test/precision.frag
@@ -30,6 +30,11 @@ void main()
precision lowp int;
int level1_low;
sum += level1_low;
+
+ // test maxing precisions of args to get precision of builtin
+ lowp float arg1;
+ mediump float arg2;
+ lowp float d = distance(arg1, arg2);
{
int level2_low;