From abd8d40bf9efe3f49734ab139a249f12b98fffb1 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 10 Sep 2024 22:45:17 +0000 Subject: [PATCH] vulkan: Add another two error codes Those two come from the VK_KHR_pipeline_binary extension and have been added in Vulkan 1.3.294. --- gdk/gdkvulkancontext.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c index 284f0f7d33..2915f633c9 100644 --- a/gdk/gdkvulkancontext.c +++ b/gdk/gdkvulkancontext.c @@ -274,6 +274,12 @@ gdk_vulkan_strerror (VkResult result) case VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR: return "The specified Video Std parameters do not adhere to the syntactic or semantic requirements of the used video compression standard or implementation"; #endif +#if VK_HEADER_VERSION >= 294 + case VK_PIPELINE_BINARY_MISSING_KHR: + return "The application attempted to create a pipeline binary by querying an internal cache, but the internal cache entry did not exist. (VK_PIPELINE_BINARY_MISSING_KHR)"; + case VK_ERROR_NOT_ENOUGH_SPACE_KHR: + return "The application did not provide enough space to return all the required data. (VK_ERROR_NOT_ENOUGH_SPACE_KHR)"; +#endif case VK_RESULT_MAX_ENUM: default: