https://github.com/shader-slang/slang
Revision 975c5db3f0a71bc93369a321318e7d3b43001ff5 authored by jsmall-nvidia on 17 July 2020, 20:38:18 UTC, committed by GitHub on 17 July 2020, 20:38:18 UTC
* This code is disabled, it was part of the optimization `Specialize function calls involving array arguments. (#1389)` on github. It is disabled here because it causes a problem when a struct is passed to a function that contains a structured buffer *and* an array. It is specialized on the struct type, and so those types become parameters to the function. If the struct contains a structured buffer this is a problem on GLSL/VK based targets because currently structured buffers cannot be function parameters. The fix for now is to just disable this optimization. * Fix typo in name of test expected values.
1 parent ee75558
Tip revision: 975c5db3f0a71bc93369a321318e7d3b43001ff5 authored by jsmall-nvidia on 17 July 2020, 20:38:18 UTC
Disable specializing function calls if they have a struct param, that contains an array (#1448)
Disable specializing function calls if they have a struct param, that contains an array (#1448)
Tip revision: 975c5db
File | Mode | Size |
---|---|---|
docs | ||
examples | ||
external | ||
extras | ||
prelude | ||
source | ||
tests | ||
tools | ||
.editorconfig | -rw-r--r-- | 937 bytes |
.gitattributes | -rw-r--r-- | 95 bytes |
.gitignore | -rw-r--r-- | 745 bytes |
.gitmodules | -rw-r--r-- | 774 bytes |
.travis.yml | -rw-r--r-- | 2.1 KB |
CODE_OF_CONDUCT.md | -rw-r--r-- | 3.1 KB |
LICENSE | -rw-r--r-- | 1.1 KB |
README.md | -rw-r--r-- | 7.4 KB |
appveyor.yml | -rw-r--r-- | 4.0 KB |
premake.bat | -rw-r--r-- | 120 bytes |
premake5.lua | -rw-r--r-- | 37.2 KB |
slang-com-helper.h | -rw-r--r-- | 4.8 KB |
slang-com-ptr.h | -rw-r--r-- | 4.8 KB |
slang-tag-version.h | -rw-r--r-- | 36 bytes |
slang.h | -rw-r--r-- | 129.0 KB |
slang.sln | -rw-r--r-- | 13.7 KB |
test.bat | -rw-r--r-- | 1.4 KB |
travis_build.sh | -rw-r--r-- | 460 bytes |
travis_test.sh | -rw-r--r-- | 435 bytes |
Computing file changes ...