summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/VKGfx.cpp
diff options
context:
space:
mode:
authorJoshua Vandaƫle <joshua@vandaele.software>2026-01-09 23:49:10 +0100
committerJoshua Vandaƫle <joshua@vandaele.software>2026-01-09 23:49:10 +0100
commit55f0715ad4edf4485bc7b35e49fbd883ce760e47 (patch)
tree2b016eb261d2138a56c00a682abfefa96174a696 /Source/Core/VideoBackends/Vulkan/VKGfx.cpp
parentcc0ce62e7ff283919c95c12a1c8e3b0887271690 (diff)
c++23: Replace Common::ToUnderlying with std::to_underlying
Requires at least GCC 11, Clang 13, MSVC 19.30 (VS2022 17.0), or AppleClang 13.1.6 (XCode 13.3).
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VKGfx.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VKGfx.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VKGfx.cpp b/Source/Core/VideoBackends/Vulkan/VKGfx.cpp
index c071d99357..c88e422c98 100644
--- a/Source/Core/VideoBackends/Vulkan/VKGfx.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VKGfx.cpp
@@ -5,9 +5,9 @@
#include <cstddef>
#include <cstdio>
+#include <utility>
#include "Common/CommonTypes.h"
-#include "Common/EnumUtils.h"
#include "Common/Logging/Log.h"
#include "Common/MsgHandler.h"
@@ -273,7 +273,7 @@ bool VKGfx::BindBackbuffer(const ClearColor& clear_color)
else
{
ERROR_LOG_FMT(VIDEO, "Unknown present error {:#010X} {}, please report.",
- Common::ToUnderlying(res), VkResultToString(res));
+ std::to_underlying(res), VkResultToString(res));
m_swap_chain->RecreateSwapChain();
}
@@ -286,8 +286,8 @@ bool VKGfx::BindBackbuffer(const ClearColor& clear_color)
}
else
{
- PanicAlertFmt("Failed to grab image from swap chain: {:#010X} {}",
- Common::ToUnderlying(res), VkResultToString(res));
+ PanicAlertFmt("Failed to grab image from swap chain: {:#010X} {}", std::to_underlying(res),
+ VkResultToString(res));
}
}
}