diff options
| author | Yong He <yonghe@outlook.com> | 2023-10-09 14:03:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-09 14:03:43 -0700 |
| commit | 67e186f0169591c48d24bd8ff7e4e4e715e8fa45 (patch) | |
| tree | 9b46dc35145d18d5b25d9b3b16759c9b7343615c /source/compiler-core/slang-spirv-dis-compiler.h | |
| parent | 17c7163c2ae8fc290e70b43d8700b68ef18b1ee1 (diff) | |
Run curated spirv-opt passes through slang-glslang. (#3266)
* Run curated spirv-opt passes through slang-glslang.
* Cleanup.
* Replace spirv-dis downstream compiler with glslang.
* delete slang-spirv-opt.cpp.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/compiler-core/slang-spirv-dis-compiler.h')
| -rw-r--r-- | source/compiler-core/slang-spirv-dis-compiler.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/source/compiler-core/slang-spirv-dis-compiler.h b/source/compiler-core/slang-spirv-dis-compiler.h deleted file mode 100644 index fb01627cd..000000000 --- a/source/compiler-core/slang-spirv-dis-compiler.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once - -#include "slang-downstream-compiler-util.h" - -#include "../core/slang-platform.h" - -namespace Slang -{ - -struct SPIRVDisDownstreamCompilerUtil -{ - static SlangResult locateCompilers(const String& path, ISlangSharedLibraryLoader* loader, DownstreamCompilerSet* set); -}; - -class SPIRVDisDownstreamCompiler : public DownstreamCompilerBase -{ -public: - SPIRVDisDownstreamCompiler(const Desc& desc) : DownstreamCompilerBase(desc) {} - - virtual SlangResult SLANG_MCALL convert(IArtifact* from, const ArtifactDesc& to, IArtifact** outArtifact) noexcept override; - - virtual bool SLANG_MCALL isFileBased() noexcept override { return true; } - virtual SlangResult SLANG_MCALL compile(const CompileOptions& options, IArtifact** outArtifact) noexcept override; -}; - -} |
