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
Raw File
Tip revision: 3d4eaf3c9b13e32c4e4d7737f17805503cddcb0b authored by Yong He on 15 January 2018, 23:15:49 UTC
Support transitive interfaces
Tip revision: 3d4eaf3
.gitattributes
# indicate generated files so they don't appear in GitHub diffs
*.slang.cpp linguist-generated
back to top