summaryrefslogtreecommitdiffstats
path: root/tests/cross-compile/precise-keyword.slang.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cross-compile/precise-keyword.slang.glsl')
-rw-r--r--tests/cross-compile/precise-keyword.slang.glsl9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/cross-compile/precise-keyword.slang.glsl b/tests/cross-compile/precise-keyword.slang.glsl
index 17fed739e..027a8eb3b 100644
--- a/tests/cross-compile/precise-keyword.slang.glsl
+++ b/tests/cross-compile/precise-keyword.slang.glsl
@@ -11,15 +11,18 @@ in vec2 _S2;
void main()
{
+ float _S3 = _S2.x;
+
precise float z_0;
- if(_S2.x > float(0))
+ if(_S3 > 0.00000000000000000000)
{
- z_0 = _S2.x * _S2.y + _S2.x;
+ z_0 = _S3 * _S2.y + _S3;
}
else
{
- z_0 = _S2.y * _S2.x + _S2.y;
+ float _S4 = _S2.y;
+ z_0 = _S4 * _S3 + _S4;
}
_S1 = vec4(z_0);
return;