VideoCommon/Statistics: Use std::array for projection values

Makes the members within the interface much nicer to look at, and also
makes copying them over much nicer too.
This commit is contained in:
Lioncash
2019-06-20 07:42:16 -04:00
parent baf02194c1
commit 04c06ec661
6 changed files with 36 additions and 72 deletions

View File

@ -4,6 +4,8 @@
#pragma once
#include <array>
#include "Common/BitField.h"
#include "Common/CommonTypes.h"
#include "VideoCommon/CPMemory.h"
@ -245,7 +247,9 @@ struct Viewport
struct Projection
{
float rawProjection[6];
using Raw = std::array<float, 6>;
Raw rawProjection;
u32 type; // only GX_PERSPECTIVE or GX_ORTHOGRAPHIC are allowed
};