mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-20 18:47:52 -05:00
rasterizer: Implemented combiner output scaling.
This commit is contained in:
@ -300,7 +300,18 @@ struct Regs {
|
||||
BitField<24, 8, u32> const_a;
|
||||
};
|
||||
|
||||
INSERT_PADDING_WORDS(0x1);
|
||||
union {
|
||||
BitField< 0, 2, u32> color_scale;
|
||||
BitField<16, 2, u32> alpha_scale;
|
||||
};
|
||||
|
||||
inline unsigned GetColorMultiplier() const {
|
||||
return (color_scale < 3) ? (1 << color_scale) : 1;
|
||||
}
|
||||
|
||||
inline unsigned GetAlphaMultiplier() const {
|
||||
return (alpha_scale < 3) ? (1 << alpha_scale) : 1;
|
||||
}
|
||||
};
|
||||
|
||||
TevStageConfig tev_stage0;
|
||||
|
Reference in New Issue
Block a user