summaryrefslogtreecommitdiff
path: root/tests/cross-compile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cross-compile')
-rw-r--r--tests/cross-compile/geometry-shader.slang.glsl3
-rw-r--r--tests/cross-compile/precise-keyword.slang.glsl6
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/cross-compile/geometry-shader.slang.glsl b/tests/cross-compile/geometry-shader.slang.glsl
index 2dd9d35bc..feaf3e1f2 100644
--- a/tests/cross-compile/geometry-shader.slang.glsl
+++ b/tests/cross-compile/geometry-shader.slang.glsl
@@ -91,7 +91,8 @@ void main()
EmitVertex();
- ii_0 = ii_0 + 1;
+ int _S9 = ii_0 + 1;
+ ii_0 = _S9;
}
return;
diff --git a/tests/cross-compile/precise-keyword.slang.glsl b/tests/cross-compile/precise-keyword.slang.glsl
index be541ff94..1aabaa1b3 100644
--- a/tests/cross-compile/precise-keyword.slang.glsl
+++ b/tests/cross-compile/precise-keyword.slang.glsl
@@ -15,11 +15,13 @@ void main()
if(_S2.x > float(0))
{
- z_0 = _S2.x * _S2.y + _S2.x;
+ float _S3 = _S2.x * _S2.y + _S2.x;
+ z_0 = _S3;
}
else
{
- z_0 = _S2.y * _S2.x + _S2.y;
+ float _S4 = _S2.y * _S2.x + _S2.y;
+ z_0 = _S4;
}
_S1 = vec4(z_0);
return;