1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-07 16:54:14 +01:00

[d3d9] Make texture stage state args mask easier to read

This commit is contained in:
Joshua Ashton 2020-05-07 15:37:05 +01:00
parent a6771daf49
commit b2f6885e55

View File

@ -6151,10 +6151,10 @@ namespace dxvk {
auto ArgsMask = [](DWORD Op) { auto ArgsMask = [](DWORD Op) {
switch (Op) { switch (Op) {
case D3DTOP_DISABLE: case D3DTOP_DISABLE:
return 0b0u; // No Args return 0b000u; // No Args
case D3DTOP_SELECTARG1: case D3DTOP_SELECTARG1:
case D3DTOP_PREMODULATE: case D3DTOP_PREMODULATE:
return 0b10u; // Arg 1 return 0b010u; // Arg 1
case D3DTOP_SELECTARG2: case D3DTOP_SELECTARG2:
return 0b100u; // Arg 2 return 0b100u; // Arg 2
case D3DTOP_MULTIPLYADD: case D3DTOP_MULTIPLYADD: