summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D11
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2017-12-14 02:26:47 +0000
committerEgor Yusov <egor.yusov@gmail.com>2017-12-14 02:26:47 +0000
commitca792090564a12ab85ffcf77f3054d5d6bf3330c (patch)
tree58ce00b38e7057c2df9ae13c642402f123b537da /Graphics/GraphicsEngineD3D11
parentAdded option to create shader from bytecode for D3D11 and D3D12 (diff)
downloadDiligentCore-ca792090564a12ab85ffcf77f3054d5d6bf3330c.tar.gz
DiligentCore-ca792090564a12ab85ffcf77f3054d5d6bf3330c.zip
Enabling universal windows platform in cmake
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
-rw-r--r--Graphics/GraphicsEngineD3D11/CMakeLists.txt2
-rw-r--r--Graphics/GraphicsEngineD3D11/interface/RenderDeviceFactoryD3D11.h10
2 files changed, 11 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineD3D11/CMakeLists.txt b/Graphics/GraphicsEngineD3D11/CMakeLists.txt
index 0b59bf48..ef2d02b7 100644
--- a/Graphics/GraphicsEngineD3D11/CMakeLists.txt
+++ b/Graphics/GraphicsEngineD3D11/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 3.3)
+cmake_minimum_required (VERSION 3.8)
project(GraphicsEngineD3D11 CXX)
diff --git a/Graphics/GraphicsEngineD3D11/interface/RenderDeviceFactoryD3D11.h b/Graphics/GraphicsEngineD3D11/interface/RenderDeviceFactoryD3D11.h
index 0f0a4e28..05337aae 100644
--- a/Graphics/GraphicsEngineD3D11/interface/RenderDeviceFactoryD3D11.h
+++ b/Graphics/GraphicsEngineD3D11/interface/RenderDeviceFactoryD3D11.h
@@ -32,6 +32,10 @@
#include "DeviceContext.h"
#include "SwapChain.h"
+#if PLATFORM_UNIVERSAL_WINDOWS && defined(ENGINE_DLL)
+# include "StringTools.h"
+#endif
+
namespace Diligent
{
@@ -83,7 +87,13 @@ extern "C"
#endif
LibName += ".dll";
+#if PLATFORM_WIN32
auto hModule = LoadLibraryA( LibName.c_str() );
+#elif PLATFORM_UNIVERSAL_WINDOWS
+ auto hModule = LoadPackagedLibrary(Diligent::WidenString(LibName).c_str(), 0);
+#else
+# error Unexpected platform
+#endif
if( hModule == NULL )
{
LOG_ERROR_MESSAGE( "Failed to load ", LibName, " library." );