https://github.com/shader-slang/slang
Revision 3d4eaf3c9b13e32c4e4d7737f17805503cddcb0b authored by Yong He on 15 January 2018, 23:15:49 UTC, committed by Yong He on 15 January 2018, 23:18:25 UTC
This commit is a bunch of quick hacks to get transitive interfaces to work. The idea is for each concrete type we create one giant witness table that contains entries for all the transitively reachable interface requirements, and then create one copy of that witness table for each interface it implements.

`DoLocalLookupImpl` now also looks up in inherited interface decles when looking up for a symbol in an interface decl.

When visiting `InheritanceDecl` in `lower-to-ir`, create copies of the giant witness table for each transitively inherited interface, so that these witness tables can be found later when the IR is specialized.

Re-enable the `copy all witness tables` hack in `specializeIRForEntryPoint` to ensure those transitive witness tables are copied over.
1 parent 8abae05
History
Tip revision: 3d4eaf3c9b13e32c4e4d7737f17805503cddcb0b authored by Yong He on 15 January 2018, 23:15:49 UTC
Support transitive interfaces
Tip revision: 3d4eaf3
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-- 41.9 KB
slang.sln -rw-r--r-- 9.1 KB
test.bat -rw-r--r-- 1.4 KB

README.md

back to top