mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-24 10:21:04 +00:00
Implement stencil action 2 in SW renderer
This commit is contained in:
parent
3a5352baf8
commit
bd371f3a5b
@ -431,6 +431,7 @@ struct Regs {
|
||||
|
||||
enum class StencilAction : u32 {
|
||||
Keep = 0,
|
||||
AndReverse = 2,
|
||||
Xor = 5,
|
||||
};
|
||||
|
||||
|
@ -221,6 +221,9 @@ static u8 PerformStencilAction(Regs::StencilAction action, u8 dest, u8 ref) {
|
||||
case Regs::StencilAction::Keep:
|
||||
return dest;
|
||||
|
||||
case Regs::StencilAction::AndReverse:
|
||||
return dest & ~ref;
|
||||
|
||||
case Regs::StencilAction::Xor:
|
||||
return dest ^ ref;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user