summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D11
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-07-20 15:35:48 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-07-20 15:35:48 +0000
commit2f5a609357272052cccf32b60c97ee7e9fa25bc0 (patch)
tree011e9c8612b622d59974018b7e217f0416f2cc50 /Graphics/GraphicsEngineD3D11
parentFixed linux/mac build (diff)
downloadDiligentCore-2f5a609357272052cccf32b60c97ee7e9fa25bc0.tar.gz
DiligentCore-2f5a609357272052cccf32b60c97ee7e9fa25bc0.zip
Disabled D3D11 fence for now to fix build
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
-rw-r--r--Graphics/GraphicsEngineD3D11/include/pch.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/Graphics/GraphicsEngineD3D11/include/pch.h b/Graphics/GraphicsEngineD3D11/include/pch.h
index 2f0f23bb..5ef3d049 100644
--- a/Graphics/GraphicsEngineD3D11/include/pch.h
+++ b/Graphics/GraphicsEngineD3D11/include/pch.h
@@ -38,17 +38,26 @@
#include <vector>
#include <exception>
#include <algorithm>
+
#if PLATFORM_WIN32
-# if _WIN32_WINNT >= 0x0A00 // _WIN32_WINNT_WIN10
-# include <d3d11_3.h>
-# else
-# include <d3d11.h>
-# endif
+# define D3D11_VERSION 0
#elif PLATFORM_UNIVERSAL_WINDOWS
- #include <d3d11_3.h>
+# define D3D11_VERSION 2
+#endif
+
+#if D3D11_VERSION == 0
+# include <d3d11.h>
+#elif D3D11_VERSION == 1
+# include <d3d11_1.h>
+#elif D3D11_VERSION == 2
+# include <d3d11_2.h>
+#elif D3D11_VERSION == 3
+# include <d3d11_3.h>
+#elif D3D11_VERSION == 4
+# include <d3d11_4.h>
#endif
-#if _WIN32_WINNT >= 0x0A00 // _WIN32_WINNT_WIN10
+#if D3D11_VERSION >=4
# define D3D11_FENCES_SUPPORTED 1
#else
# define D3D11_FENCES_SUPPORTED 0