mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-23 00:40:07 +00:00
VideoCommon: Use constant for number of color channels in XFMemory
This commit is contained in:
parent
f2f50d4fe5
commit
18c1bf19ca
@ -10,6 +10,8 @@
|
||||
|
||||
class DataReader;
|
||||
|
||||
constexpr size_t NUM_XF_COLOR_CHANNELS = 2;
|
||||
|
||||
// Lighting
|
||||
|
||||
// Projection
|
||||
@ -266,10 +268,10 @@ struct XFMemory
|
||||
u32 perf1; // 0x1007
|
||||
INVTXSPEC hostinfo; // 0x1008 number of textures,colors,normals from vertex input
|
||||
NumColorChannel numChan; // 0x1009
|
||||
u32 ambColor[2]; // 0x100a, 0x100b
|
||||
u32 matColor[2]; // 0x100c, 0x100d
|
||||
LitChannel color[2]; // 0x100e, 0x100f
|
||||
LitChannel alpha[2]; // 0x1010, 0x1011
|
||||
u32 ambColor[NUM_XF_COLOR_CHANNELS]; // 0x100a, 0x100b
|
||||
u32 matColor[NUM_XF_COLOR_CHANNELS]; // 0x100c, 0x100d
|
||||
LitChannel color[NUM_XF_COLOR_CHANNELS]; // 0x100e, 0x100f
|
||||
LitChannel alpha[NUM_XF_COLOR_CHANNELS]; // 0x1010, 0x1011
|
||||
DualTexInfo dualTexTrans; // 0x1012
|
||||
u32 unk3; // 0x1013
|
||||
u32 unk4; // 0x1014
|
||||
|
Loading…
x
Reference in New Issue
Block a user