5#include "flutter/vulkan/procs/vulkan_interface.h"
14 return "VK_NOT_READY";
18 return "VK_EVENT_SET";
20 return "VK_EVENT_RESET";
22 return "VK_INCOMPLETE";
24 return "VK_ERROR_OUT_OF_HOST_MEMORY";
26 return "VK_ERROR_OUT_OF_DEVICE_MEMORY";
28 return "VK_ERROR_INITIALIZATION_FAILED";
30 return "VK_ERROR_DEVICE_LOST";
32 return "VK_ERROR_MEMORY_MAP_FAILED";
34 return "VK_ERROR_LAYER_NOT_PRESENT";
36 return "VK_ERROR_EXTENSION_NOT_PRESENT";
38 return "VK_ERROR_FEATURE_NOT_PRESENT";
40 return "VK_ERROR_INCOMPATIBLE_DRIVER";
42 return "VK_ERROR_TOO_MANY_OBJECTS";
44 return "VK_ERROR_FORMAT_NOT_SUPPORTED";
46 return "VK_ERROR_FRAGMENTED_POOL";
48 return "VK_ERROR_SURFACE_LOST_KHR";
50 return "VK_ERROR_NATIVE_WINDOW_IN_USE_KHR";
52 return "VK_SUBOPTIMAL_KHR";
54 return "VK_ERROR_OUT_OF_DATE_KHR";
56 return "VK_ERROR_INCOMPATIBLE_DISPLAY_KHR";
58 return "VK_ERROR_VALIDATION_FAILED_EXT";
60 return "VK_ERROR_INVALID_SHADER_NV";
61#if VK_HEADER_VERSION < 140
62 case VK_RESULT_RANGE_SIZE:
63 return "VK_RESULT_RANGE_SIZE";
66 return "VK_RESULT_MAX_ENUM";
68 return "VK_ERROR_INVALID_EXTERNAL_HANDLE";
70 return "VK_ERROR_OUT_OF_POOL_MEMORY";
72 return "Unknown Error";
std::string VulkanResultToString(VkResult result)
@ VK_ERROR_VALIDATION_FAILED_EXT
@ VK_ERROR_INVALID_SHADER_NV
@ VK_ERROR_EXTENSION_NOT_PRESENT
@ VK_ERROR_INVALID_EXTERNAL_HANDLE
@ VK_ERROR_OUT_OF_HOST_MEMORY
@ VK_ERROR_INITIALIZATION_FAILED
@ VK_ERROR_INCOMPATIBLE_DISPLAY_KHR
@ VK_ERROR_OUT_OF_DEVICE_MEMORY
@ VK_ERROR_NATIVE_WINDOW_IN_USE_KHR
@ VK_ERROR_OUT_OF_DATE_KHR
@ VK_ERROR_FORMAT_NOT_SUPPORTED
@ VK_ERROR_FRAGMENTED_POOL
@ VK_ERROR_SURFACE_LOST_KHR
@ VK_ERROR_FEATURE_NOT_PRESENT
@ VK_ERROR_TOO_MANY_OBJECTS
@ VK_ERROR_MEMORY_MAP_FAILED
@ VK_ERROR_LAYER_NOT_PRESENT
@ VK_ERROR_INCOMPATIBLE_DRIVER
@ VK_ERROR_OUT_OF_POOL_MEMORY