34 #include "dxc/dxcapi.h"
44 class DXCompilerBase :
public IDXCompiler
47 ~DXCompilerBase()
override
58 std::wstring wname{LibName.begin(), LibName.end()};
61 Module = LoadPackagedLibrary(wname.c_str(), 0);
64 if (Module ==
nullptr)
65 Module = LoadPackagedLibrary(L
"dxcompiler.dll", 0);
67 return Module ?
reinterpret_cast<DxcCreateInstanceProc
>(GetProcAddress(Module,
"DxcCreateInstance")) :
nullptr;
71 HMODULE Module =
nullptr;