mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-08 12:12:39 +00:00
Move alpha pretest to BPMemory.h and rename a bunch of alpha testing related stuff
This commit is contained in:
parent
c80f6e8b84
commit
d26bcb0847
9 changed files with 68 additions and 72 deletions
|
@ -433,10 +433,10 @@ static bool AlphaCompare(int alpha, int ref, int comp)
|
|||
|
||||
static bool AlphaTest(int alpha)
|
||||
{
|
||||
bool comp0 = AlphaCompare(alpha, bpmem.alphaFunc.ref0, bpmem.alphaFunc.comp0);
|
||||
bool comp1 = AlphaCompare(alpha, bpmem.alphaFunc.ref1, bpmem.alphaFunc.comp1);
|
||||
bool comp0 = AlphaCompare(alpha, bpmem.alpha_test.ref0, bpmem.alpha_test.comp0);
|
||||
bool comp1 = AlphaCompare(alpha, bpmem.alpha_test.ref1, bpmem.alpha_test.comp1);
|
||||
|
||||
switch (bpmem.alphaFunc.logic) {
|
||||
switch (bpmem.alpha_test.logic) {
|
||||
case 0: return comp0 && comp1; // and
|
||||
case 1: return comp0 || comp1; // or
|
||||
case 2: return comp0 ^ comp1; // xor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue