(D3D11) ability to compile without HAVE_SLANG

This commit is contained in:
twinaphex 2018-02-03 17:01:47 +01:00
parent 43a6213b68
commit 1464995fdc
1 changed files with 4 additions and 0 deletions

View File

@ -33,7 +33,9 @@
#include "../common/d3d11_common.h" #include "../common/d3d11_common.h"
#include "../common/dxgi_common.h" #include "../common/dxgi_common.h"
#include "../common/d3dcompiler_common.h" #include "../common/d3dcompiler_common.h"
#ifdef HAVE_SLANG
#include "../drivers_shader/slang_process.h" #include "../drivers_shader/slang_process.h"
#endif
static void d3d11_set_filtering(void* data, unsigned index, bool smooth) static void d3d11_set_filtering(void* data, unsigned index, bool smooth)
{ {
@ -138,6 +140,7 @@ static void d3d11_free_shader_preset(d3d11_video_t* d3d11)
static bool d3d11_gfx_set_shader(void* data, enum rarch_shader_type type, const char* path) static bool d3d11_gfx_set_shader(void* data, enum rarch_shader_type type, const char* path)
{ {
#ifdef HAVE_SLANG
unsigned i; unsigned i;
d3d11_video_t* d3d11 = (d3d11_video_t*)data; d3d11_video_t* d3d11 = (d3d11_video_t*)data;
@ -347,6 +350,7 @@ static bool d3d11_gfx_set_shader(void* data, enum rarch_shader_type type, const
error: error:
d3d11_free_shader_preset(d3d11); d3d11_free_shader_preset(d3d11);
#endif
return false; return false;
} }