From 1a8dcfc6cf776bacdabe7eb36caa5e0f2d0d3470 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 7 Jul 2018 17:57:06 -0700 Subject: Disabled Vulkan on 32-bit Windows --- Projects/Asteroids/src/asteroids_DE.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Projects/Asteroids/src/asteroids_DE.cpp') diff --git a/Projects/Asteroids/src/asteroids_DE.cpp b/Projects/Asteroids/src/asteroids_DE.cpp index 522bd8f..0ac1b3c 100644 --- a/Projects/Asteroids/src/asteroids_DE.cpp +++ b/Projects/Asteroids/src/asteroids_DE.cpp @@ -24,7 +24,11 @@ #include "RenderDeviceFactoryD3D11.h" #include "RenderDeviceFactoryD3D12.h" #include "RenderDeviceFactoryOpenGL.h" + +#if VULKAN_SUPPORTED #include "RenderDeviceFactoryVk.h" +#endif + #include "BasicShaderSourceStreamFactory.h" #include "MapHelper.h" @@ -43,8 +47,10 @@ namespace Diligent GetEngineFactoryD3D11Type GetEngineFactoryD3D11 = nullptr; GetEngineFactoryD3D12Type GetEngineFactoryD3D12 = nullptr; GetEngineFactoryOpenGLType GetEngineFactoryOpenGL = nullptr; +#if VULKAN_SUPPORTED GetEngineFactoryVkType GetEngineFactoryVulkan = nullptr; #endif +#endif } namespace AsteroidsDE { @@ -97,6 +103,7 @@ void Asteroids::InitDevice(HWND hWnd, DeviceType DevType) pFactoryD3D12->CreateDeviceAndContextsD3D12( Attribs, &mDevice, ppContexts.data(), mNumSubsets-1 ); pFactoryD3D12->CreateSwapChainD3D12( mDevice, ppContexts[0], SwapChainDesc, FullScreenModeDesc{}, hWnd, &mSwapChain ); } +#if VULKAN_SUPPORTED else if(DevType == DeviceType::Vulkan) { EngineVkAttribs Attribs; @@ -109,6 +116,7 @@ void Asteroids::InitDevice(HWND hWnd, DeviceType DevType) pFactoryVk->CreateDeviceAndContextsVk( Attribs, &mDevice, ppContexts.data(), mNumSubsets-1 ); pFactoryVk->CreateSwapChainVk( mDevice, ppContexts[0], SwapChainDesc, hWnd, &mSwapChain ); } +#endif else { UNEXPECTED("Unexpected device type"); -- cgit v1.2.3