VideoCommon: Use std::array in PortableVertexDeclaration

This commit is contained in:
TellowKrinkle
2022-08-03 01:13:55 -05:00
parent 28b31b8327
commit 1eb3aaa548
5 changed files with 11 additions and 10 deletions

View File

@ -289,7 +289,8 @@ public:
}
};
template <size_t N>
static void CopyAll(std::array<VertexAttribute, N>& output, const AttributeFormat (&input)[N])
static void CopyAll(std::array<VertexAttribute, N>& output,
const std::array<AttributeFormat, N>& input)
{
for (size_t i = 0; i < N; ++i)
output[i] = VertexAttribute(input[i]);