diff options
Diffstat (limited to 'source/slang/compiler.cpp')
| -rw-r--r-- | source/slang/compiler.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/slang/compiler.cpp b/source/slang/compiler.cpp index 83a579345..22c1d4cd8 100644 --- a/source/slang/compiler.cpp +++ b/source/slang/compiler.cpp @@ -365,6 +365,12 @@ namespace Slang { return PassThroughMode::dxc; } + case CodeGenTarget::CPPSource: + case CodeGenTarget::CSource: + { + // Don't need an external compiler to output C and C++ code + return PassThroughMode::None; + } default: break; } @@ -1051,6 +1057,17 @@ SlangResult dissassembleDXILUsingDXC( } break; + case CodeGenTarget::CPPSource: + case CodeGenTarget::CSource: + { + return emitEntryPoint( + compileRequest, + entryPoint, + target, + targetReq); + } + break; + #if SLANG_ENABLE_DXBC_SUPPORT case CodeGenTarget::DXBytecode: { |
