Added support for dynamic d3dcompile load

If you really want to use d3dcompile, then I think its better to find the most recent d3dcompile you have on your computer and load its D3DCompile function.
This process is now automatically handled. Just define  the right Preprocessor.
This commit is contained in:
Nemirtingas 2019-08-02 09:06:59 +02:00
parent a1037e3bf2
commit 3a0d9c55c1
5 changed files with 72 additions and 4 deletions

View file

@ -6,9 +6,12 @@
#ifdef USE_D3DCOMPILE
#include <d3dcompiler.h>
#ifdef _MSC_VER
#pragma comment(lib, "d3dcompiler") // Automatically link with d3dcompiler.lib as we are using D3DCompile() below.
#endif
//#ifdef _MSC_VER
// #pragma comment(lib, "d3dcompiler") // Automatically link with d3dcompiler.lib as we are using D3DCompile() below.
//#endif
decltype(D3DCompile)* load_d3dcompile();
void unload_d3dcompile();
#else
#define ImGui_vertexShaderDX10_len 876