Move Vulkan includes to a central godot_vulkan.h header

Also fixes Vulkan build problem with recent Clang.
This commit is contained in:
Gergely Kis
2024-09-26 21:46:48 +02:00
parent 1fc8208765
commit 146ba4106f
14 changed files with 64 additions and 69 deletions

View File

@ -13,11 +13,7 @@
#ifdef __cplusplus
#include <string>
#endif
#ifdef USE_VOLK
#include <volk.h>
#else
#include <vulkan/vulkan.h>
#endif
#include "drivers/vulkan/godot_vulkan.h"
static inline const char* string_VkResult(VkResult input_value) {
switch (input_value) {
case VK_SUCCESS: