https://github.com/shader-slang/slang
Revision c24c173101c2c124401af77d8c513a23efac3b7e authored by Tim Foley on 30 October 2017, 18:17:20 UTC, committed by GitHub on 30 October 2017, 18:17:20 UTC
There were some cases where we would try to emit an `ErrorType` to the output HLSL, which obviously isn't allowed. This change tries to avoid emitting error types, and instead use the original expression when it is available.

I tried adding a test case for the change, but I can't convince Slang to output matching line numbers for the error message; it seems like more work is needed on that front.
1 parent 4ab545b
History
Tip revision: c24c173101c2c124401af77d8c513a23efac3b7e authored by Tim Foley on 30 October 2017, 18:17:20 UTC
Fix output for type cast when checking fails (#238)
Tip revision: c24c173
File Mode Size
build
docs
examples
external
source
tests
tools
.gitattributes -rw-r--r-- 95 bytes
.gitignore -rw-r--r-- 398 bytes
.gitmodules -rw-r--r-- 107 bytes
.travis.yml -rw-r--r-- 1.6 KB
CODE_OF_CONDUCT.md -rw-r--r-- 3.1 KB
LICENSE -rw-r--r-- 1.1 KB
Makefile -rw-r--r-- 6.3 KB
README.md -rw-r--r-- 6.2 KB
appveyor.yml -rw-r--r-- 3.5 KB
slang.h -rw-r--r-- 35.2 KB
slang.sln -rw-r--r-- 9.1 KB
test.bat -rw-r--r-- 1.4 KB

README.md

back to top