From 1831dcbe6f3a2119bebc572654805045f0f0c473 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 30 May 2019 03:54:56 -0400 Subject: [PATCH] VideoVulkan/ShaderCompiler: Use non-member std::size instead of ArraySize() Now that we're on C++17, we can use its non-member std::size function instead of ours. This provides no functional change. --- Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp b/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp index 107c9f4962..e9551e319e 100644 --- a/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp +++ b/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp @@ -17,7 +17,6 @@ #include "ShaderLang.h" #include "disassemble.h" -#include "Common/CommonFuncs.h" #include "Common/FileUtil.h" #include "Common/Logging/Log.h" #include "Common/MsgHandler.h" @@ -127,7 +126,7 @@ std::optional CompileShaderToSPV(EShLanguage stage, const char* int pass_source_code_length = static_cast(source.size()); if (!header.empty()) { - constexpr size_t subgroup_helper_header_length = ArraySize(SUBGROUP_HELPER_HEADER) - 1; + constexpr size_t subgroup_helper_header_length = std::size(SUBGROUP_HELPER_HEADER) - 1; full_source_code.reserve(header.size() + subgroup_helper_header_length + source.size()); full_source_code.append(header); if (g_vulkan_context->SupportsShaderSubgroupOperations())