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.
This commit is contained in:
Lioncash 2019-05-30 03:54:56 -04:00
parent d6a60050ff
commit 1831dcbe6f
1 changed files with 1 additions and 2 deletions

View File

@ -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<SPIRVCodeVector> CompileShaderToSPV(EShLanguage stage, const char*
int pass_source_code_length = static_cast<int>(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())