diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2024-05-02 11:56:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-02 11:56:13 -0700 |
| commit | f7d54af67e026feb2546af1deaf2513a36f8516e (patch) | |
| tree | c751573fbfceb114eeac6217bb3ccc4c13f19ef2 /tests/reflection | |
| parent | 679a457940027420817a85070b3fdb9bfc0cca2e (diff) | |
Fix fmod behavior targetting GLSL and SPIR-V (#4080)
* Fix fmod behavior targetting GLSL and SPIR-V
The default implementation of fmod was doing "Modulo" operation when
"fmod" in HLSL should do "remainder" operation.
* Fix a mistake in `fmod` GLSL target
When using __intrinsic_asm, the "if" logic wasn't emitted.
"__intrinsic_asm" had to be called from a new function and `fmod` had to
call it.
Alternatively, I am using `operator?()` to workaround.
A similar modification is made to `roundEven()` hoping for a better
performance.
Diffstat (limited to 'tests/reflection')
0 files changed, 0 insertions, 0 deletions
