godot/thirdparty/vulkan/patches/VKEnumStringHelper-use-godot-vulkan.patch
Gergely Kis c3a277097a
Move Vulkan includes to a central godot_vulkan.h header
Also fixes Vulkan build problem with recent Clang.

(cherry picked from commit 146ba4106f)
2025-10-29 12:12:19 +01:00

16 lines
481 B
Diff

diff --git a/thirdparty/vulkan/vk_enum_string_helper.h b/thirdparty/vulkan/vk_enum_string_helper.h
index 005cc21ea8..16f1adc605 100644
--- a/thirdparty/vulkan/vk_enum_string_helper.h
+++ b/thirdparty/vulkan/vk_enum_string_helper.h
@@ -36,8 +36,10 @@
#pragma warning( disable : 4065 )
#endif
+#ifdef __cplusplus
#include <string>
-#include <vulkan/vulkan.h>
+#endif
+#include "drivers/vulkan/godot_vulkan.h"
static inline const char* string_VkResult(VkResult input_value)