mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
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:
parent
a1037e3bf2
commit
3a0d9c55c1
5 changed files with 72 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue