Skip to content
Permalink
Browse files
Merge pull request #11119 from AdmiralCurtiss/vulkan-panic-alerts
Vulkan/CommandBufferManager: Show error code in PanicAlerts.
  • Loading branch information
Pokechu22 committed Oct 4, 2022
2 parents 078777e + eea31db commit 5479f0e
Showing 1 changed file with 4 additions and 2 deletions.
@@ -303,7 +303,8 @@ void CommandBufferManager::SubmitCommandBuffer(bool submit_on_worker_thread,
if (res != VK_SUCCESS)
{
LOG_VULKAN_ERROR(res, "vkEndCommandBuffer failed: ");
PanicAlertFmt("Failed to end command buffer");
PanicAlertFmt("Failed to end command buffer: {} ({})", VkResultToString(res),
static_cast<int>(res));
}
}

@@ -400,7 +401,8 @@ void CommandBufferManager::SubmitCommandBuffer(u32 command_buffer_index,
if (res != VK_SUCCESS)
{
LOG_VULKAN_ERROR(res, "vkQueueSubmit failed: ");
PanicAlertFmt("Failed to submit command buffer.");
PanicAlertFmt("Failed to submit command buffer: {} ({})", VkResultToString(res),
static_cast<int>(res));
}

// Do we have a swap chain to present?

0 comments on commit 5479f0e

Please sign in to comment.