From 3f53b0f65c84551872a38c26298a5eed8ea4cff9 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sat, 8 Feb 2020 15:04:02 +0800 Subject: [PATCH] support Vulkan SDK 1.2 --- src/RenderDevice/Vulkan/POD/VKTextureLoader.cpp | 2 +- src/RenderDevice/Vulkan/VKDeviceCreater.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RenderDevice/Vulkan/POD/VKTextureLoader.cpp b/src/RenderDevice/Vulkan/POD/VKTextureLoader.cpp index b7519715..459d2556 100644 --- a/src/RenderDevice/Vulkan/POD/VKTextureLoader.cpp +++ b/src/RenderDevice/Vulkan/POD/VKTextureLoader.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include diff --git a/src/RenderDevice/Vulkan/VKDeviceCreater.cpp b/src/RenderDevice/Vulkan/VKDeviceCreater.cpp index fb57c75c..401dd9af 100644 --- a/src/RenderDevice/Vulkan/VKDeviceCreater.cpp +++ b/src/RenderDevice/Vulkan/VKDeviceCreater.cpp @@ -352,8 +352,8 @@ Device *CreateRenderDevice(VkInstance inst,const PhysicalDevice *physical_device { const VkDriverIdKHR driver_id=physical_device->GetDriverId(); - if(driver_id>=VK_DRIVER_ID_BEGIN_RANGE_KHR - &&driver_id<=VK_DRIVER_ID_END_RANGE_KHR) + if(driver_id>=VK_DRIVER_ID_BEGIN_RANGE + &&driver_id<=VK_DRIVER_ID_END_RANGE) { std::cout<<"DriverID: "<GetDriverId()<GetDriverName()<