summaryrefslogtreecommitdiff
path: root/source/slang/dxc-support.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/dxc-support.cpp')
-rw-r--r--source/slang/dxc-support.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/slang/dxc-support.cpp b/source/slang/dxc-support.cpp
index 7fe22191b..7d2d6dc0c 100644
--- a/source/slang/dxc-support.cpp
+++ b/source/slang/dxc-support.cpp
@@ -64,6 +64,17 @@ namespace Slang
return SLANG_FAIL;
}
+ {
+ if (!session->getSharedLibrary(SharedLibraryType::Dxil))
+ {
+ // If can't load dxil - dxc will not be able to sign output
+ // Output a suitable warning to the user
+ auto& sink = entryPoint->compileRequest->mSink;
+
+ sink.diagnose(SourceLoc(), Diagnostics::dxilNotFound);
+ }
+ }
+
ComPtr<IDxcCompiler> dxcCompiler;
SLANG_RETURN_ON_FAIL(dxcCreateInstance(
CLSID_DxcCompiler,