aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.GAL/StencilTestDescriptor.cs
blob: db46c957922d452f9b02269e60b96c984666295a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
namespace Ryujinx.Graphics.GAL
{
    public readonly struct StencilTestDescriptor
    {
        public bool TestEnable { get; }

        public CompareOp FrontFunc     { get; }
        public StencilOp FrontSFail    { get; }
        public StencilOp FrontDpPass   { get; }
        public StencilOp FrontDpFail   { get; }
        public int       FrontFuncRef  { get; }
        public int       FrontFuncMask { get; }
        public int       FrontMask     { get; }
        public CompareOp BackFunc      { get; }
        public StencilOp BackSFail     { get; }
        public StencilOp BackDpPass    { get; }
        public StencilOp BackDpFail    { get; }
        public int       BackFuncRef   { get; }
        public int       BackFuncMask  { get; }
        public int       BackMask      { get; }

        public StencilTestDescriptor(
            bool      testEnable,
            CompareOp frontFunc,
            StencilOp frontSFail,
            StencilOp frontDpPass,
            StencilOp frontDpFail,
            int       frontFuncRef,
            int       frontFuncMask,
            int       frontMask,
            CompareOp backFunc,
            StencilOp backSFail,
            StencilOp backDpPass,
            StencilOp backDpFail,
            int       backFuncRef,
            int       backFuncMask,
            int       backMask)
        {
            TestEnable    = testEnable;
            FrontFunc     = frontFunc;
            FrontSFail    = frontSFail;
            FrontDpPass   = frontDpPass;
            FrontDpFail   = frontDpFail;
            FrontFuncRef  = frontFuncRef;
            FrontFuncMask = frontFuncMask;
            FrontMask     = frontMask;
            BackFunc      = backFunc;
            BackSFail     = backSFail;
            BackDpPass    = backDpPass;
            BackDpFail    = backDpFail;
            BackFuncRef   = backFuncRef;
            BackFuncMask  = backFuncMask;
            BackMask      = backMask;
        }
    }
}