support Vulkan SDK 1.2

This commit is contained in:
hyzboy 2020-02-08 15:04:02 +08:00
parent ee52ad23ae
commit 3f53b0f65c
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#include<hgl/graph/vulkan/VK.h> #include<hgl/graph/vulkan/VK.h>
#include<hgl/graph/vulkan/VKDevice.h> #include<hgl/graph/vulkan/VKDevice.h>
#include<hgl/graph/vulkan/VKBuffer.h> #include<hgl/graph/vulkan/VKBuffer.h>
#include<hgl/io/FileInputStream.h> #include<hgl/io/FileInputStream.h>

View File

@ -352,8 +352,8 @@ Device *CreateRenderDevice(VkInstance inst,const PhysicalDevice *physical_device
{ {
const VkDriverIdKHR driver_id=physical_device->GetDriverId(); const VkDriverIdKHR driver_id=physical_device->GetDriverId();
if(driver_id>=VK_DRIVER_ID_BEGIN_RANGE_KHR if(driver_id>=VK_DRIVER_ID_BEGIN_RANGE
&&driver_id<=VK_DRIVER_ID_END_RANGE_KHR) &&driver_id<=VK_DRIVER_ID_END_RANGE)
{ {
std::cout<<"DriverID: "<<physical_device->GetDriverId()<<std::endl; std::cout<<"DriverID: "<<physical_device->GetDriverId()<<std::endl;
std::cout<<"DriverName: "<<physical_device->GetDriverName()<<std::endl; std::cout<<"DriverName: "<<physical_device->GetDriverName()<<std::endl;