VideoCommon: Use constant for number of color channels in XFMemory

This commit is contained in:
Stenzek
2017-11-20 23:18:44 +10:00
parent f2f50d4fe5
commit 18c1bf19ca
+6 -4
View File
@@ -10,6 +10,8 @@
class DataReader; class DataReader;
constexpr size_t NUM_XF_COLOR_CHANNELS = 2;
// Lighting // Lighting
// Projection // Projection
@@ -266,10 +268,10 @@ struct XFMemory
u32 perf1; // 0x1007 u32 perf1; // 0x1007
INVTXSPEC hostinfo; // 0x1008 number of textures,colors,normals from vertex input INVTXSPEC hostinfo; // 0x1008 number of textures,colors,normals from vertex input
NumColorChannel numChan; // 0x1009 NumColorChannel numChan; // 0x1009
u32 ambColor[2]; // 0x100a, 0x100b u32 ambColor[NUM_XF_COLOR_CHANNELS]; // 0x100a, 0x100b
u32 matColor[2]; // 0x100c, 0x100d u32 matColor[NUM_XF_COLOR_CHANNELS]; // 0x100c, 0x100d
LitChannel color[2]; // 0x100e, 0x100f LitChannel color[NUM_XF_COLOR_CHANNELS]; // 0x100e, 0x100f
LitChannel alpha[2]; // 0x1010, 0x1011 LitChannel alpha[NUM_XF_COLOR_CHANNELS]; // 0x1010, 0x1011
DualTexInfo dualTexTrans; // 0x1012 DualTexInfo dualTexTrans; // 0x1012
u32 unk3; // 0x1013 u32 unk3; // 0x1013
u32 unk4; // 0x1014 u32 unk4; // 0x1014