diff options
| author | Yong He <yonghe@outlook.com> | 2021-04-16 10:34:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-16 10:34:26 -0700 |
| commit | 79e92395f8ce3d92c446e3bb3250d19ce33decd5 (patch) | |
| tree | 2ac277fa299200da72cf03a2b5b96338f66aee5d /source/slang/slang-compiler.cpp | |
| parent | bad484d838590d0a2aaf1b5b8ac820634af2decb (diff) | |
Update `model-viewer` example and fixing compiler bugs. (#1795)
Diffstat (limited to 'source/slang/slang-compiler.cpp')
| -rwxr-xr-x | source/slang/slang-compiler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp index 44cfebf13..19a5fddf8 100755 --- a/source/slang/slang-compiler.cpp +++ b/source/slang/slang-compiler.cpp @@ -2309,6 +2309,9 @@ SlangResult dissassembleDXILUsingDXC( sink, m_program); + backEndRequest->shouldDumpIR = + (m_targetReq->getTargetFlags() & SLANG_TARGET_FLAG_DUMP_IR) != 0; + return _createWholeProgramResult( backEndRequest, nullptr); @@ -2339,6 +2342,9 @@ SlangResult dissassembleDXILUsingDXC( sink, m_program); + backEndRequest->shouldDumpIR = + (m_targetReq->getTargetFlags() & SLANG_TARGET_FLAG_DUMP_IR) != 0; + return _createEntryPointResult( entryPointIndex, backEndRequest, |
