1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00
Files
godot/thirdparty/vulkan/patches/VKEnumStringHelper-use-godot-vulkan.patch
Gergely Kis be302e7957 Move Vulkan includes to a central godot_vulkan.h header
Also fixes Vulkan build problem with recent Clang.

(cherry picked from commit 146ba4106f)
2024-12-16 11:50:17 +01:00

17 lines
574 B
Diff

diff --git a/thirdparty/vulkan/vk_enum_string_helper.h b/thirdparty/vulkan/vk_enum_string_helper.h
index 8c77dd3ee5..74f49a6430 100644
--- a/thirdparty/vulkan/vk_enum_string_helper.h
+++ b/thirdparty/vulkan/vk_enum_string_helper.h
@@ -22,8 +22,10 @@
****************************************************************************/
// NOLINTBEGIN
#pragma once
+#ifdef __cplusplus
#include <string>
-#include <vulkan/vulkan.h>
+#endif
+#include "drivers/vulkan/godot_vulkan.h"
static inline bool IsDuplicatePnext(VkStructureType input_value) {
switch (input_value) {