Implement stencil action 2 in SW renderer
This commit is contained in:
parent
3a5352baf8
commit
bd371f3a5b
2 changed files with 4 additions and 0 deletions
|
@ -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 a new issue