3#include "vulkan_api.hpp"
6struct LITEFX_VULKAN_API
fmt::formatter<VkResult> : formatter<string_view> {
7 template <
typename FormatContext>
8 auto format(VkResult t, FormatContext& ctx) {
13 case VK_SUCCESS: name =
"VK_SUCCESS";
break;
14 case VK_NOT_READY: name =
"VK_NOT_READY";
break;
15 case VK_TIMEOUT: name =
"VK_TIMEOUT";
break;
16 case VK_EVENT_SET: name =
"VK_EVENT_SET";
break;
17 case VK_EVENT_RESET: name =
"VK_EVENT_RESET";
break;
18 case VK_INCOMPLETE: name =
"VK_INCOMPLETE";
break;
19 case VK_ERROR_OUT_OF_HOST_MEMORY: name =
"VK_ERROR_OUT_OF_HOST_MEMORY";
break;
20 case VK_ERROR_OUT_OF_DEVICE_MEMORY: name =
"VK_ERROR_OUT_OF_DEVICE_MEMORY";
break;
21 case VK_ERROR_INITIALIZATION_FAILED: name =
"VK_ERROR_INITIALIZATION_FAILED";
break;
22 case VK_ERROR_DEVICE_LOST: name =
"VK_ERROR_DEVICE_LOST";
break;
23 case VK_ERROR_MEMORY_MAP_FAILED: name =
"VK_ERROR_MEMORY_MAP_FAILED";
break;
24 case VK_ERROR_LAYER_NOT_PRESENT: name =
"VK_ERROR_LAYER_NOT_PRESENT";
break;
25 case VK_ERROR_EXTENSION_NOT_PRESENT: name =
"VK_ERROR_EXTENSION_NOT_PRESENT";
break;
26 case VK_ERROR_FEATURE_NOT_PRESENT: name =
"VK_ERROR_FEATURE_NOT_PRESENT";
break;
27 case VK_ERROR_INCOMPATIBLE_DRIVER: name =
"VK_ERROR_INCOMPATIBLE_DRIVER";
break;
28 case VK_ERROR_TOO_MANY_OBJECTS: name =
"VK_ERROR_TOO_MANY_OBJECTS";
break;
29 case VK_ERROR_FORMAT_NOT_SUPPORTED: name =
"VK_ERROR_FORMAT_NOT_SUPPORTED";
break;
30 case VK_ERROR_FRAGMENTED_POOL: name =
"VK_ERROR_FRAGMENTED_POOL";
break;
31 case VK_ERROR_UNKNOWN: name =
"VK_ERROR_UNKNOWN";
break;
32 case VK_ERROR_OUT_OF_POOL_MEMORY: name =
"VK_ERROR_OUT_OF_POOL_MEMORY";
break;
33 case VK_ERROR_INVALID_EXTERNAL_HANDLE: name =
"VK_ERROR_INVALID_EXTERNAL_HANDLE";
break;
34 case VK_ERROR_FRAGMENTATION: name =
"VK_ERROR_FRAGMENTATION";
break;
35 case VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS: name =
"VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS";
break;
36 case VK_ERROR_SURFACE_LOST_KHR: name =
"VK_ERROR_SURFACE_LOST_KHR";
break;
37 case VK_ERROR_NATIVE_WINDOW_IN_USE_KHR: name =
"VK_ERROR_NATIVE_WINDOW_IN_USE_KHR";
break;
38 case VK_SUBOPTIMAL_KHR: name =
"VK_SUBOPTIMAL_KHR";
break;
39 case VK_ERROR_OUT_OF_DATE_KHR: name =
"VK_ERROR_OUT_OF_DATE_KHR";
break;
40 case VK_ERROR_INCOMPATIBLE_DISPLAY_KHR: name =
"VK_ERROR_INCOMPATIBLE_DISPLAY_KHR";
break;
41 case VK_ERROR_VALIDATION_FAILED_EXT: name =
"VK_ERROR_VALIDATION_FAILED_EXT";
break;
42 case VK_ERROR_INVALID_SHADER_NV: name =
"VK_ERROR_INVALID_SHADER_NV";
break;
43 case VK_ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT: name =
"VK_ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT";
break;
44 case VK_ERROR_NOT_PERMITTED_EXT: name =
"VK_ERROR_NOT_PERMITTED_EXT";
break;
45 case VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT: name =
"VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT";
break;
46 default: name =
"Status: unknown";
break;
49 return formatter<string_view>::format(name, ctx);
Definition: app_formatters.hpp:6
auto format(VkResult t, FormatContext &ctx)
Definition: vulkan_formatters.hpp:8