mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
ShaderGen: Make use of padding to store the stereo flag.
This commit is contained in:
parent
35342664e3
commit
9b4185ffdf
2 changed files with 2 additions and 6 deletions
|
@ -44,7 +44,7 @@ struct pixel_shader_uid_data
|
||||||
u32 dstAlphaMode : 2;
|
u32 dstAlphaMode : 2;
|
||||||
u32 Pretest : 2;
|
u32 Pretest : 2;
|
||||||
u32 nIndirectStagesUsed : 4;
|
u32 nIndirectStagesUsed : 4;
|
||||||
u32 pad0 : 1;
|
u32 stereo : 1;
|
||||||
|
|
||||||
u32 genMode_numtexgens : 4;
|
u32 genMode_numtexgens : 4;
|
||||||
u32 genMode_numtevstages : 4;
|
u32 genMode_numtevstages : 4;
|
||||||
|
@ -119,8 +119,6 @@ struct pixel_shader_uid_data
|
||||||
|
|
||||||
// TODO: I think we're fine without an enablePixelLighting field, should probably double check, though..
|
// TODO: I think we're fine without an enablePixelLighting field, should probably double check, though..
|
||||||
LightingUidData lighting;
|
LightingUidData lighting;
|
||||||
|
|
||||||
u32 stereo : 1;
|
|
||||||
};
|
};
|
||||||
#pragma pack()
|
#pragma pack()
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ struct vertex_shader_uid_data
|
||||||
u32 numColorChans : 2;
|
u32 numColorChans : 2;
|
||||||
u32 dualTexTrans_enabled : 1;
|
u32 dualTexTrans_enabled : 1;
|
||||||
u32 pixel_lighting : 1;
|
u32 pixel_lighting : 1;
|
||||||
u32 pad0 : 1;
|
u32 stereo : 1;
|
||||||
|
|
||||||
u32 texMtxInfo_n_projection : 16; // Stored separately to guarantee that the texMtxInfo struct is 8 bits wide
|
u32 texMtxInfo_n_projection : 16; // Stored separately to guarantee that the texMtxInfo struct is 8 bits wide
|
||||||
struct {
|
struct {
|
||||||
|
@ -56,8 +56,6 @@ struct vertex_shader_uid_data
|
||||||
} postMtxInfo[8];
|
} postMtxInfo[8];
|
||||||
|
|
||||||
LightingUidData lighting;
|
LightingUidData lighting;
|
||||||
|
|
||||||
u32 stereo : 1;
|
|
||||||
};
|
};
|
||||||
#pragma pack()
|
#pragma pack()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue