diff options
Diffstat (limited to 'thirdparty/vulkan/patches/VKEnumStringHelper-use-volk.patch')
-rw-r--r-- | thirdparty/vulkan/patches/VKEnumStringHelper-use-volk.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/thirdparty/vulkan/patches/VKEnumStringHelper-use-volk.patch b/thirdparty/vulkan/patches/VKEnumStringHelper-use-volk.patch new file mode 100644 index 0000000000..0fd22281d9 --- /dev/null +++ b/thirdparty/vulkan/patches/VKEnumStringHelper-use-volk.patch @@ -0,0 +1,17 @@ +diff --git a/thirdparty/vulkan/vk_enum_string_helper.h b/thirdparty/vulkan/vk_enum_string_helper.h +index 4c36430341..004a861774 100755 +--- a/thirdparty/vulkan/vk_enum_string_helper.h ++++ b/thirdparty/vulkan/vk_enum_string_helper.h +@@ -36,7 +36,11 @@ + #endif + + #include <string> +-#include <vulkan/vulkan.h> ++#ifdef USE_VOLK ++ #include <volk.h> ++#else ++ #include <vulkan/vulkan.h> ++#endif + + + static inline const char* string_VkResult(VkResult input_value) |