mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-10 10:41:52 +00:00
Compatibility fix with old sdks where VK_ERROR_UNKNOWN is not defined
This commit is contained in:
parent
c809ddca76
commit
7e5a1d0859
@ -150,6 +150,10 @@ available through VmaAllocatorCreateInfo::pRecordSettings.
|
|||||||
#include <vulkan/vulkan.h>
|
#include <vulkan/vulkan.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(VK_VERSION_1_2)
|
||||||
|
#define VK_ERROR_UNKNOWN ((VkResult)-13)
|
||||||
|
#endif
|
||||||
|
|
||||||
// Define this macro to declare maximum supported Vulkan version in format AAABBBCCC,
|
// Define this macro to declare maximum supported Vulkan version in format AAABBBCCC,
|
||||||
// where AAA = major, BBB = minor, CCC = patch.
|
// where AAA = major, BBB = minor, CCC = patch.
|
||||||
// If you want to use version > 1.0, it still needs to be enabled via VmaAllocatorCreateInfo::vulkanApiVersion.
|
// If you want to use version > 1.0, it still needs to be enabled via VmaAllocatorCreateInfo::vulkanApiVersion.
|
||||||
|
Loading…
Reference in New Issue
Block a user