mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 04:10:06 +00:00
Merge pull request #233 from laurelkeys/patch-1
Include vulkan.h before #define VMA_VULKAN_VERSION
This commit is contained in:
commit
ed2a72153e
@ -126,6 +126,10 @@ for user-defined purpose without allocating any real GPU memory.
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef VULKAN_H_
|
||||
#include <vulkan/vulkan.h>
|
||||
#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.
|
||||
@ -170,10 +174,6 @@ extern "C" {
|
||||
#endif // #if VMA_VULKAN_VERSION >= 1001000
|
||||
#endif // #if defined(__ANDROID__) && VMA_STATIC_VULKAN_FUNCTIONS && VK_NO_PROTOTYPES
|
||||
|
||||
#ifndef VULKAN_H_
|
||||
#include <vulkan/vulkan.h>
|
||||
#endif
|
||||
|
||||
#if !defined(VK_VERSION_1_2)
|
||||
// This one is tricky. Vulkan specification defines this code as available since
|
||||
// Vulkan 1.0, but doesn't actually define it in Vulkan SDK earlier than 1.2.131.
|
||||
|
Loading…
Reference in New Issue
Block a user