support Vulkan SDK 1.2
This commit is contained in:
parent
ee52ad23ae
commit
3f53b0f65c
@ -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>
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user