MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator / GetVulkanApiVersion

Function GetVulkanApiVersion

src/VulkanSample.cpp:402–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402static constexpr uint32_t GetVulkanApiVersion()
403{
404#if VMA_VULKAN_VERSION == 1004000
405 return VK_API_VERSION_1_4;
406#elif VMA_VULKAN_VERSION == 1003000
407 return VK_API_VERSION_1_3;
408#elif VMA_VULKAN_VERSION == 1002000
409 return VK_API_VERSION_1_2;
410#elif VMA_VULKAN_VERSION == 1001000
411 return VK_API_VERSION_1_1;
412#elif VMA_VULKAN_VERSION == 1000000
413 return VK_API_VERSION_1_0;
414#else
415#error Invalid VMA_VULKAN_VERSION.
416 return UINT32_MAX;
417#endif
418}
419
420void VulkanUsage::Init()
421{

Callers 4

InitMethod · 0.85
PrintEnabledFeaturesFunction · 0.85
SetAllocatorCreateInfoFunction · 0.85
InitializeApplicationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected