mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-31 17:07:44 +00:00
Fixes in VulkanSample.cpp for Vulkan version 1.4
This commit is contained in:
parent
ff3938503b
commit
c578a4f4f1
1 changed files with 6 additions and 1 deletions
|
@ -401,7 +401,9 @@ static VkExtent2D ChooseSwapExtent()
|
|||
|
||||
static constexpr uint32_t GetVulkanApiVersion()
|
||||
{
|
||||
#if VMA_VULKAN_VERSION == 1003000
|
||||
#if VMA_VULKAN_VERSION == 1004000
|
||||
return VK_API_VERSION_1_4;
|
||||
#elif VMA_VULKAN_VERSION == 1003000
|
||||
return VK_API_VERSION_1_3;
|
||||
#elif VMA_VULKAN_VERSION == 1002000
|
||||
return VK_API_VERSION_1_2;
|
||||
|
@ -502,6 +504,9 @@ void VulkanUsage::Init()
|
|||
#endif
|
||||
#ifdef VK_VERSION_1_3
|
||||
case VK_API_VERSION_1_3: wprintf(L"1.3\n"); break;
|
||||
#endif
|
||||
#ifdef VK_VERSION_1_4
|
||||
case VK_API_VERSION_1_4: wprintf(L"1.4\n"); break;
|
||||
#endif
|
||||
default: assert(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue