diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-08-08 13:23:06 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-07 22:23:06 -0700 |
| commit | 97dccb4c61645a14f541e7bceba3ba1599efb8ba (patch) | |
| tree | 1484445b5133500bf1eba3849a970e728170735a /source/compiler-core/slang-downstream-compiler-util.cpp | |
| parent | 43e0fba1a51ae27ac2b3ab12e9b6bbb87126b7cc (diff) | |
Add spirv-dis as a downstream compiler (#3059)
* Add spirv-dis as a downstream compiler
* Add TODO for spirv-dis downstream compiler
* Do not use SpirvDis by default
* tabs to spaces
* regenerate vs projects
* correct test
* correct calling convention
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/compiler-core/slang-downstream-compiler-util.cpp')
| -rw-r--r-- | source/compiler-core/slang-downstream-compiler-util.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/compiler-core/slang-downstream-compiler-util.cpp b/source/compiler-core/slang-downstream-compiler-util.cpp index d00c3fecb..44d750be8 100644 --- a/source/compiler-core/slang-downstream-compiler-util.cpp +++ b/source/compiler-core/slang-downstream-compiler-util.cpp @@ -23,6 +23,7 @@ #include "slang-dxc-compiler.h" #include "slang-glslang-compiler.h" #include "slang-llvm-compiler.h" +#include "slang-spirv-dis-compiler.h" namespace Slang { @@ -327,6 +328,7 @@ DownstreamCompilerMatchVersion DownstreamCompilerUtil::getCompiledVersion() outFuncs[int(SLANG_PASS_THROUGH_FXC)] = &FXCDownstreamCompilerUtil::locateCompilers; outFuncs[int(SLANG_PASS_THROUGH_GLSLANG)] = &GlslangDownstreamCompilerUtil::locateCompilers; outFuncs[int(SLANG_PASS_THROUGH_LLVM)] = &LLVMDownstreamCompilerUtil::locateCompilers; + outFuncs[int(SLANG_PASS_THROUGH_SPIRV_DIS)] = &SPIRVDisDownstreamCompilerUtil::locateCompilers; } static String _getParentPath(const String& path) |
