mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 07:09:03 +00:00
VideoCommon: Use constant for number of color channels in XFMemory
This commit is contained in:
parent
f2f50d4fe5
commit
18c1bf19ca
1 changed files with 38 additions and 36 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue