https://github.com/shader-slang/slang
Revision 691ebae763e29327249735d67fbb231c75b17840 authored by Tim Foley on 03 July 2019, 20:58:35 UTC, committed by GitHub on 03 July 2019, 20:58:35 UTC
The function was accidentally defined with a generic `int` parameter copy-pasted  from the vector definition, but that made the scalar version impossible to call with inferred generic arguments, because there wasn't a way to infer `N` when it isn't used in the parameter list.

Includes a simple test case to confirm that the front-end no longer chokes on calls to scalar `sincos()`.
1 parent 714b088
History
Tip revision: 691ebae763e29327249735d67fbb231c75b17840 authored by Tim Foley on 03 July 2019, 20:58:35 UTC
Fix declaration of scalar sincos() function. (#996)
Tip revision: 691ebae
File Mode Size
docs
examples
external
source
tests
tools
.editorconfig -rw-r--r-- 937 bytes
.gitattributes -rw-r--r-- 95 bytes
.gitignore -rw-r--r-- 419 bytes
.gitmodules -rw-r--r-- 406 bytes
.travis.yml -rw-r--r-- 1.7 KB
CODE_OF_CONDUCT.md -rw-r--r-- 3.1 KB
LICENSE -rw-r--r-- 1.1 KB
README.md -rw-r--r-- 6.7 KB
appveyor.yml -rw-r--r-- 3.7 KB
premake5.lua -rw-r--r-- 26.7 KB
slang-com-helper.h -rw-r--r-- 4.8 KB
slang-com-ptr.h -rw-r--r-- 4.8 KB
slang.h -rw-r--r-- 106.8 KB
slang.sln -rw-r--r-- 9.8 KB
test.bat -rw-r--r-- 1.4 KB
travis_build.sh -rw-r--r-- 304 bytes
travis_test.sh -rw-r--r-- 435 bytes

README.md

back to top