mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[Linux] Vulkan build fixes
Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
committed by
Konstantin Pastbin
parent
76d8396cb1
commit
33f8e20f1b
@@ -12,7 +12,6 @@
|
||||
#include <X11/X.h>
|
||||
|
||||
#include <vulkan_wrapper.h>
|
||||
#include <vulkan/vulkan_xlib.h>
|
||||
// Workaround for TestFunction::Always compilation issue:
|
||||
// /usr/include/X11/X.h:441:33: note: expanded from macro 'Always'
|
||||
#undef Always
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "drape/vulkan/vulkan_utils.hpp"
|
||||
|
||||
#include <array>
|
||||
#include <string>
|
||||
|
||||
namespace dp
|
||||
{
|
||||
@@ -95,6 +96,8 @@ std::string GetVulkanResultString(VkResult result)
|
||||
case VK_ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR: return "VK_ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR";
|
||||
case VK_ERROR_IMAGE_USAGE_NOT_SUPPORTED_KHR: return "VK_ERROR_IMAGE_USAGE_NOT_SUPPORTED_KHR";
|
||||
case VK_INCOMPATIBLE_SHADER_BINARY_EXT: return "VK_INCOMPATIBLE_SHADER_BINARY_EXT";
|
||||
case VK_PIPELINE_BINARY_MISSING_KHR: return "VK_PIPELINE_BINARY_MISSING_KHR";
|
||||
case VK_ERROR_NOT_ENOUGH_SPACE_KHR: return "VK_ERROR_NOT_ENOUGH_SPACE_KHR";
|
||||
}
|
||||
UNREACHABLE();
|
||||
return "Unknown result";
|
||||
|
||||
Reference in New Issue
Block a user