(D3D11) ability to compile without HAVE_SLANG
This commit is contained in:
parent
43a6213b68
commit
1464995fdc
|
@ -33,7 +33,9 @@
|
|||
#include "../common/d3d11_common.h"
|
||||
#include "../common/dxgi_common.h"
|
||||
#include "../common/d3dcompiler_common.h"
|
||||
#ifdef HAVE_SLANG
|
||||
#include "../drivers_shader/slang_process.h"
|
||||
#endif
|
||||
|
||||
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)
|
||||
{
|
||||
#ifdef HAVE_SLANG
|
||||
unsigned i;
|
||||
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:
|
||||
d3d11_free_shader_preset(d3d11);
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue