Merge pull request #207 from scribam/sdk-compatibility

Compatibility fix with old sdks where VK_ERROR_UNKNOWN is not defined
This commit is contained in:
Adam Sawicki 2021-11-25 14:28:48 +01:00 committed by GitHub
commit 43d82a168f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,6 +150,10 @@ available through VmaAllocatorCreateInfo::pRecordSettings.
#include <vulkan/vulkan.h>
#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,
// where AAA = major, BBB = minor, CCC = patch.
// If you want to use version > 1.0, it still needs to be enabled via VmaAllocatorCreateInfo::vulkanApiVersion.