mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Move Vulkan includes to a central godot_vulkan.h header
Also fixes Vulkan build problem with recent Clang.
(cherry picked from commit 146ba4106f)
This commit is contained in:
parent
d71ff49cc9
commit
01b7292495
14 changed files with 66 additions and 71 deletions
16
thirdparty/vulkan/patches/VKEnumStringHelper-use-godot-vulkan.patch
vendored
Normal file
16
thirdparty/vulkan/patches/VKEnumStringHelper-use-godot-vulkan.patch
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
diff --git a/thirdparty/vulkan/vk_enum_string_helper.h b/thirdparty/vulkan/vk_enum_string_helper.h
|
||||
index 062c3d9915..10df8e8115 100644
|
||||
--- a/thirdparty/vulkan/vk_enum_string_helper.h
|
||||
+++ b/thirdparty/vulkan/vk_enum_string_helper.h
|
||||
@@ -28,8 +28,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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue