diff options
Diffstat (limited to 'src/vulkan/device.cc')
-rw-r--r-- | src/vulkan/device.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/vulkan/device.cc b/src/vulkan/device.cc index d43b367..22cd77a 100644 --- a/src/vulkan/device.cc +++ b/src/vulkan/device.cc @@ -385,7 +385,14 @@ Result Device::LoadVulkanPointers(PFN_vkGetInstanceProcAddr getInstanceProcAddr, if (delegate && delegate->LogGraphicsCalls()) delegate->Log("Loading Vulkan Pointers"); -#include "vk-wrappers.inc" +#include "vk-wrappers-1-0.inc" + + ptrs_.vkGetPhysicalDeviceProperties(physical_device_, + &physical_device_properties_); + + if (SupportsApiVersion(1, 1, 0)) { +#include "vk-wrappers-1-1.inc" + } return {}; } @@ -632,9 +639,6 @@ Result Device::Initialize( "required extensions"); } - ptrs_.vkGetPhysicalDeviceProperties(physical_device_, - &physical_device_properties_); - ptrs_.vkGetPhysicalDeviceMemoryProperties(physical_device_, &physical_memory_properties_); |