We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75f968d commit 722702dCopy full SHA for 722702d
tools/clang/tools/dxcompiler/dxcapi.cpp
@@ -60,8 +60,12 @@ HRESULT CreateDxcContainerBuilder(REFIID riid, _Out_ LPVOID *ppv) {
60
// Call dxil.dll's containerbuilder
61
*ppv = nullptr;
62
const char *warning;
63
- HRESULT hr = DxilLibCreateInstance(CLSID_DxcContainerBuilder,
64
- (IDxcContainerBuilder **)ppv);
+ HRESULT hr = DxilLibInitialize();
+ if (FAILED(hr)) {
65
+ warning = "Unable to load dxil.dll.\n";
66
+ }
67
+ hr = DxilLibCreateInstance(CLSID_DxcContainerBuilder,
68
+ (IDxcContainerBuilder **)ppv);
69
if (FAILED(hr)) {
70
warning = "Unable to create container builder from dxil.dll. Resulting "
71
"container will not be signed.\n";
0 commit comments