diff --git a/except.cpp b/except.cpp index 5e0da57..81f2ec5 100644 --- a/except.cpp +++ b/except.cpp @@ -43,7 +43,17 @@ using cruft::vk::error_code; VK_ERROR_FEATURE_NOT_PRESENT, \ VK_ERROR_INCOMPATIBLE_DRIVER, \ VK_ERROR_TOO_MANY_OBJECTS, \ - VK_ERROR_FORMAT_NOT_SUPPORTED) + VK_ERROR_FORMAT_NOT_SUPPORTED, \ + VK_ERROR_FRAGMENTED_POOL, \ + VK_ERROR_VALIDATION_FAILED_EXT, \ + VK_ERROR_SURFACE_LOST_KHR, \ + VK_ERROR_NATIVE_WINDOW_IN_USE_KHR, \ + VK_SUBOPTIMAL_KHR, \ + VK_ERROR_OUT_OF_DATE_KHR, \ + VK_ERROR_INCOMPATIBLE_DISPLAY_KHR, \ + VK_ERROR_OUT_OF_POOL_MEMORY_KHR, \ + VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR, \ + VK_ERROR_INVALID_SHADER_NV) /////////////////////////////////////////////////////////////////////////////// @@ -73,6 +83,22 @@ to_string (VkResult res) case VK_ERROR_INCOMPATIBLE_DRIVER: return "incompatible driver"; case VK_ERROR_TOO_MANY_OBJECTS: return "too many objects"; case VK_ERROR_FORMAT_NOT_SUPPORTED: return "format not supported"; + case VK_ERROR_FRAGMENTED_POOL: return "fragmented pool"; + + // EXT + case VK_ERROR_VALIDATION_FAILED_EXT: return "validation failed"; + + // KHR + case VK_ERROR_SURFACE_LOST_KHR: return "surface lost"; + case VK_ERROR_NATIVE_WINDOW_IN_USE_KHR: return "native window in use"; + case VK_SUBOPTIMAL_KHR: return "suboptimal"; + case VK_ERROR_OUT_OF_DATE_KHR: return "out of date"; + case VK_ERROR_INCOMPATIBLE_DISPLAY_KHR: return "incompatible display"; + case VK_ERROR_OUT_OF_POOL_MEMORY_KHR: return "out of pool memory"; + case VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR: return "invalid external handle"; + + // NV + case VK_ERROR_INVALID_SHADER_NV: return "invalid shader"; } unreachable ();