https://github.com/shader-slang/slang
Revision e8f44d426c0871069eeafa35bedde64498c4d825 authored by Tim Foley on 12 March 2018, 17:26:17 UTC, committed by Tim Foley on 12 March 2018, 17:30:33 UTC
The type legalization logic currently looks up layout information for the fields of an aggregate type using the mangled name of the field (since this should be consistent even when legalization changes the number of  fields). The problem at present is that type layouts for specialized generic types were storing the mangled names of *specialized* field decl-refs, while the lookup was using the mangled names of the unspecialized declarations. The latter (unspecialized names) is what we want for simplicity, so this change fixes the comparison.
1 parent 51bc468
History
Tip revision: e8f44d426c0871069eeafa35bedde64498c4d825 authored by Tim Foley on 12 March 2018, 17:26:17 UTC
Don't use specialized field names when legalizing types
Tip revision: e8f44d4
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-- 4.9 KB
appveyor.yml -rw-r--r-- 3.5 KB
slang.h -rw-r--r-- 42.0 KB
slang.sln -rw-r--r-- 9.1 KB
test.bat -rw-r--r-- 1.4 KB

README.md

back to top