mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-24 12:14:14 +00:00
50d7ecf76d
This PR adds the alternative enum values for StencilOp. Similar to the other enums, I added these with the same names but with Gl added to the end. These are used by homebrew using Nouveau, though they might be used by games with the official Vulkan driver.
39d90be897/rnndb/graph/nv_3ddefs.xml (L77)
Fixes some broken graphics in Citra, such as missing shadows in Mario Kart 7. Likely fixes other homebrew.
23 lines
No EOL
544 B
C#
23 lines
No EOL
544 B
C#
namespace Ryujinx.Graphics.GAL
|
|
{
|
|
public enum StencilOp
|
|
{
|
|
Keep = 1,
|
|
Zero,
|
|
Replace,
|
|
IncrementAndClamp,
|
|
DecrementAndClamp,
|
|
Invert,
|
|
IncrementAndWrap,
|
|
DecrementAndWrap,
|
|
|
|
ZeroGl = 0x0,
|
|
InvertGl = 0x150a,
|
|
KeepGl = 0x1e00,
|
|
ReplaceGl = 0x1e01,
|
|
IncrementAndClampGl = 0x1e02,
|
|
DecrementAndClampGl = 0x1e03,
|
|
IncrementAndWrapGl = 0x8507,
|
|
DecrementAndWrapGl = 0x8508
|
|
}
|
|
} |