mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
VideoCommon: Use std::array in PortableVertexDeclaration
This commit is contained in:
parent
28b31b8327
commit
1eb3aaa548
5 changed files with 11 additions and 10 deletions
|
@ -626,8 +626,8 @@ static void UpdateOffset(bool* dirty, bool include_components, u32* old_value,
|
|||
}
|
||||
|
||||
template <size_t N>
|
||||
static void UpdateOffsets(bool* dirty, bool include_components, u32 (*old_value)[N],
|
||||
const AttributeFormat (&attribute)[N])
|
||||
static void UpdateOffsets(bool* dirty, bool include_components, std::array<u32, N>* old_value,
|
||||
const std::array<AttributeFormat, N>& attribute)
|
||||
{
|
||||
for (size_t i = 0; i < N; i++)
|
||||
UpdateOffset(dirty, include_components, &(*old_value)[i], attribute[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue