summaryrefslogtreecommitdiff
path: root/thirdparty/vulkan/patches/VMA-use-volk.patch
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/vulkan/patches/VMA-use-volk.patch')
-rw-r--r--thirdparty/vulkan/patches/VMA-use-volk.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/thirdparty/vulkan/patches/VMA-use-volk.patch b/thirdparty/vulkan/patches/VMA-use-volk.patch
new file mode 100644
index 0000000000..4ba84c9a60
--- /dev/null
+++ b/thirdparty/vulkan/patches/VMA-use-volk.patch
@@ -0,0 +1,17 @@
+diff --git a/thirdparty/vulkan/vk_mem_alloc.h b/thirdparty/vulkan/vk_mem_alloc.h
+index 8a42699e7f..510fa4d3ef 100644
+--- a/thirdparty/vulkan/vk_mem_alloc.h
++++ b/thirdparty/vulkan/vk_mem_alloc.h
+@@ -1771,7 +1771,11 @@ available through VmaAllocatorCreateInfo::pRecordSettings.
+ #endif
+
+ #ifndef VULKAN_H_
+- #include <vulkan/vulkan.h>
++ #ifdef USE_VOLK
++ #include <volk.h>
++ #else
++ #include <vulkan/vulkan.h>
++ #endif
+ #endif
+
+ #if VMA_RECORDING_ENABLED