diff options
| author | Yong He <yonghe@outlook.com> | 2023-01-23 06:59:25 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-23 06:59:25 -0800 |
| commit | 46a4d98baa1d43b33717b4377aefeeaf46b9c2ff (patch) | |
| tree | c89f3a1c416330f859887d00f896b18bcc7488a5 /tests/cross-compile/precise-keyword.slang.glsl | |
| parent | 263ca18ea516cfce43fda703c0a411aaf1938e42 (diff) | |
Full address insts elimination for backward autodiff. (#2604)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/cross-compile/precise-keyword.slang.glsl')
| -rw-r--r-- | tests/cross-compile/precise-keyword.slang.glsl | 9 |
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; |
