diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2022-04-21 13:47:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-21 13:47:18 -0400 |
| commit | 3638e7735be67c8f4dae3f4544134441aa1e029d (patch) | |
| tree | f59c6965321ddcc5991df2bab3ea507b3ce50292 /source/slang/slang-lower-to-ir.cpp | |
| parent | 34f8b5e722aede018e275324c43055cad9a9ca5a (diff) | |
`export` support in HLSL (#2188)
* #include an absolute path didn't work - because paths were taken to always be relative.
* Compile to a dxil library.
* Added CompileProduct.
* Support handling of ModuleLibrary.
* CacheBehavior -> Cache
* Use CompileProduct for -r references.
* CompileProduct -> Artifact.
* Determining an artifact type on binding.
* Determine binary linkability.
* Added Artifact::exists.
* Added ArtifactKeep.
* Small fixes.
* Small improvements to Artifact.
* Add zip extension.
* Fix some comments.
* Fix multiple adding of PublicDecoration.
Make public output export for DXIL/lib.
Add checking for simpleDecorations such that only added once.
* Use 'whole program' to identify library build.
* Add -target dxil so test infrastructure knows it needs DXC.
Diffstat (limited to 'source/slang/slang-lower-to-ir.cpp')
| -rw-r--r-- | source/slang/slang-lower-to-ir.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp index 842a1ce5f..7a99faa58 100644 --- a/source/slang/slang-lower-to-ir.cpp +++ b/source/slang/slang-lower-to-ir.cpp @@ -7424,9 +7424,14 @@ struct DeclLoweringVisitor : DeclVisitor<DeclLoweringVisitor, LoweredValInfo> getBuilder()->addSimpleDecoration<IRNoInlineDecoration>(irFunc); } - if (decl->findModifier<PublicModifier>()) { +#if 0 + // Not needed as added as part of adding linkage decoration. + // Ie in call to addLinkageDecoration + if (decl->findModifier<PublicModifier>()) + { getBuilder()->addSimpleDecoration<IRPublicDecoration>(irFunc); } +#endif if (auto attr = decl->findModifier<InstanceAttribute>()) { |
