mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-26 18:34:18 +08:00
3a0d9c55c1
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.
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
#ifndef __IMGUI_SHADER_BLOBS_INCLUDED__
|
|
#define __IMGUI_SHADER_BLOBS_INCLUDED__
|
|
|
|
// Defining this will use d3dcompiler and it will be a dependence of the dll.
|
|
//#define USE_D3DCOMPILE
|
|
|
|
#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
|
|
|
|
decltype(D3DCompile)* load_d3dcompile();
|
|
void unload_d3dcompile();
|
|
#else
|
|
|
|
#define ImGui_vertexShaderDX10_len 876
|
|
extern unsigned char ImGui_vertexShaderDX10[ImGui_vertexShaderDX10_len];
|
|
|
|
#define ImGui_pixelShaderDX10_len 660
|
|
extern unsigned char ImGui_pixelShaderDX10[ImGui_pixelShaderDX10_len];
|
|
|
|
#define ImGui_vertexShaderDX11_len ImGui_vertexShaderDX10_len
|
|
#define ImGui_vertexShaderDX11 ImGui_vertexShaderDX10
|
|
|
|
#define ImGui_pixelShaderDX11_len ImGui_pixelShaderDX10_len
|
|
#define ImGui_pixelShaderDX11 ImGui_pixelShaderDX10
|
|
|
|
#define ImGui_vertexShaderDX12_len 988
|
|
extern unsigned char ImGui_vertexShaderDX12[ImGui_vertexShaderDX12_len];
|
|
|
|
#define ImGui_pixelShaderDX12_len 736
|
|
extern unsigned char ImGui_pixelShaderDX12[ImGui_pixelShaderDX12_len];
|
|
|
|
#endif
|
|
|
|
#endif//__IMGUI_SHADER_BLOBS_INCLUDED__
|