virtualx-engine/thirdparty/vulkan/patches/VMA-use-volk.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
494 B
Diff
Raw Normal View History

diff --git a/thirdparty/vulkan/vk_mem_alloc.h b/thirdparty/vulkan/vk_mem_alloc.h
index 44affc5ca4..d96f2dacc0 100644
--- a/thirdparty/vulkan/vk_mem_alloc.h
+++ b/thirdparty/vulkan/vk_mem_alloc.h
2022-02-12 12:07:28 +01:00
@@ -127,7 +127,11 @@ extern "C" {
#endif
#ifndef VULKAN_H_
- #include <vulkan/vulkan.h>
+ #ifdef USE_VOLK
+ #include <volk.h>
+ #else
+ #include <vulkan/vulkan.h>
+ #endif
#endif
// Define this macro to declare maximum supported Vulkan version in format AAABBBCCC,