summaryrefslogtreecommitdiff
path: root/source/slang/slang-compiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-compiler.cpp')
-rw-r--r--source/slang/slang-compiler.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp
index 0860a339c..a24289d22 100644
--- a/source/slang/slang-compiler.cpp
+++ b/source/slang/slang-compiler.cpp
@@ -1243,6 +1243,13 @@ SlangResult dissassembleDXILUsingDXC(
{
preprocessorDefinitions.Add(define.Key, define.Value);
}
+ {
+ auto linkage = targetReq->getLinkage();
+ for (auto& define : linkage->preprocessorDefinitions)
+ {
+ preprocessorDefinitions.Add(define.Key, define.Value);
+ }
+ }
{
/* TODO(JS): Not totally clear what options should be set here. If we are using the pass through - then using say the defines/includes