summaryrefslogtreecommitdiff
path: root/tests/front-end/import-exported-a.slang
AgeCommit message (Collapse)Author
2017-06-27Allow for re-export of an `import` declarationTim Foley
If module `A.slang` contains `__exported __import B;` then any declarations from `B.slang` will be visible to any client code that does `__import A;`. This allows a user to make a single "umbrella" file that encompases a bunch of code files. Note that this really only affects scoping during Slang compilation/checking; at code generation time everything always gets emitted as raw HLSL/GLSL so that names will be visible whether we want them to be or not.