Revision f7d54af67e026feb2546af1deaf2513a36f8516e authored by Jay Kwak on 02 May 2024, 18:56:13 UTC, committed by GitHub on 02 May 2024, 18:56:13 UTC
* 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.
1 parent 679a457
History
File Mode Size
.github
build
cmake
deps
docs
examples
external
extras
prelude
source
tests
tools
.editorconfig -rw-r--r-- 984 bytes
.gitattributes -rw-r--r-- 95 bytes
.gitignore -rw-r--r-- 1.5 KB
.gitmodules -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 84 bytes
CMakeLists.txt -rw-r--r-- 22.1 KB
CMakePresets.json -rw-r--r-- 4.0 KB
CODE_OF_CONDUCT.md -rw-r--r-- 3.1 KB
CONTRIBUTION.md -rw-r--r-- 9.9 KB
LICENSE -rw-r--r-- 1.1 KB
README.md -rw-r--r-- 8.5 KB
github_build.sh -rw-r--r-- 1.6 KB
github_macos_build.sh -rw-r--r-- 1.2 KB
make-slang-tag-version.bat -rw-r--r-- 210 bytes
premake.bat -rw-r--r-- 120 bytes
premake5.lua -rw-r--r-- 66.0 KB
slang-com-helper.h -rw-r--r-- 4.9 KB
slang-com-ptr.h -rw-r--r-- 5.0 KB
slang-gfx.h -rw-r--r-- 88.4 KB
slang-tag-version.h -rw-r--r-- 36 bytes
slang.h -rw-r--r-- 208.4 KB
slang.sln -rw-r--r-- 51.5 KB
test.bat -rw-r--r-- 1.4 KB
test.ps1 -rw-r--r-- 154 bytes

README.md

back to top