Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'reference/opt/shaders/asm/frag/loop-header-to-continue.asm.frag')
-rw-r--r--reference/opt/shaders/asm/frag/loop-header-to-continue.asm.frag7
1 files changed, 4 insertions, 3 deletions
diff --git a/reference/opt/shaders/asm/frag/loop-header-to-continue.asm.frag b/reference/opt/shaders/asm/frag/loop-header-to-continue.asm.frag
index 6497ad77..97d3b74f 100644
--- a/reference/opt/shaders/asm/frag/loop-header-to-continue.asm.frag
+++ b/reference/opt/shaders/asm/frag/loop-header-to-continue.asm.frag
@@ -33,10 +33,11 @@ void main()
for (int _60 = -3; _60 <= 3; )
{
float _64 = float(_60);
+ float _68 = exp(((-_64) * _64) * 0.2222220003604888916015625);
vec4 _72 = texture(SPIRV_Cross_CombinedmapTexturemapSampler, IN_uv + (_45 * _64));
- float _78 = exp(((-_64) * _64) * 0.2222220003604888916015625) * float(abs(_72.y - _50) < _53);
- _55 += (_72.x * _78);
- _58 += _78;
+ float _77 = float(abs(_72.y - _50) < _53);
+ _55 = fma(_72.x, _68 * _77, _55);
+ _58 = fma(_68, _77, _58);
_60++;
continue;
}