diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-29 15:08:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-29 15:08:32 +0100 |
commit | 278dd589ec8216c0ae2bc1c5dfd6d98e24019f93 (patch) | |
tree | 6a98145b5dedf682930afd49bbfb5e2b2ca32161 /src/video_core/renderer_vulkan | |
parent | Merge pull request #12840 from amazingfate/fix-gcc11 (diff) | |
parent | Simplify VkResult lookup (diff) | |
download | yuzu-278dd589ec8216c0ae2bc1c5dfd6d98e24019f93.tar yuzu-278dd589ec8216c0ae2bc1c5dfd6d98e24019f93.tar.gz yuzu-278dd589ec8216c0ae2bc1c5dfd6d98e24019f93.tar.bz2 yuzu-278dd589ec8216c0ae2bc1c5dfd6d98e24019f93.tar.lz yuzu-278dd589ec8216c0ae2bc1c5dfd6d98e24019f93.tar.xz yuzu-278dd589ec8216c0ae2bc1c5dfd6d98e24019f93.tar.zst yuzu-278dd589ec8216c0ae2bc1c5dfd6d98e24019f93.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_swapchain.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_swapchain.cpp b/src/video_core/renderer_vulkan/vk_swapchain.cpp index 86a30dcd1..4f1d3b4e3 100644 --- a/src/video_core/renderer_vulkan/vk_swapchain.cpp +++ b/src/video_core/renderer_vulkan/vk_swapchain.cpp @@ -12,6 +12,7 @@ #include "core/core.h" #include "video_core/renderer_vulkan/vk_scheduler.h" #include "video_core/renderer_vulkan/vk_swapchain.h" +#include "video_core/vulkan_common/vk_enum_string_helper.h" #include "video_core/vulkan_common/vulkan_device.h" #include "video_core/vulkan_common/vulkan_wrapper.h" #include "vulkan/vulkan_core.h" @@ -151,7 +152,7 @@ bool Swapchain::AcquireNextImage() { vk::Check(result); break; default: - LOG_ERROR(Render_Vulkan, "vkAcquireNextImageKHR returned {}", vk::ToString(result)); + LOG_ERROR(Render_Vulkan, "vkAcquireNextImageKHR returned {}", string_VkResult(result)); break; } @@ -187,7 +188,7 @@ void Swapchain::Present(VkSemaphore render_semaphore) { vk::Check(result); break; default: - LOG_CRITICAL(Render_Vulkan, "Failed to present with error {}", vk::ToString(result)); + LOG_CRITICAL(Render_Vulkan, "Failed to present with error {}", string_VkResult(result)); break; } ++frame_index; |