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>
struct Statistics
{
int numPixelShadersCreated;
@ -17,14 +19,9 @@ struct Statistics
int numVertexLoaders;
float proj_0, proj_1, proj_2, proj_3, proj_4, proj_5;
float gproj_0, gproj_1, gproj_2, gproj_3, gproj_4, gproj_5;
float gproj_6, gproj_7, gproj_8, gproj_9, gproj_10, gproj_11, gproj_12, gproj_13, gproj_14,
gproj_15;
float g2proj_0, g2proj_1, g2proj_2, g2proj_3, g2proj_4, g2proj_5;
float g2proj_6, g2proj_7, g2proj_8, g2proj_9, g2proj_10, g2proj_11, g2proj_12, g2proj_13,
g2proj_14, g2proj_15;
std::array<float, 6> proj;
std::array<float, 16> gproj;
std::array<float, 16> g2proj;
struct ThisFrame
{