aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/GalTextureSampler.cs
blob: 2e57a130c60a13ffd2e0dc1f23f60c921eecada9 (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
namespace Ryujinx.Graphics.Gal
{
    public struct GalTextureSampler
    {
        public GalTextureWrap AddressU { get; private set; }
        public GalTextureWrap AddressV { get; private set; }
        public GalTextureWrap AddressP { get; private set; }

        public GalTextureFilter    MinFilter { get; private set; }
        public GalTextureFilter    MagFilter { get; private set; }
        public GalTextureMipFilter MipFilter { get; private set; }

        public GalColorF BorderColor { get; private set; }

        public bool             DepthCompare     { get; private set; }
        public DepthCompareFunc DepthCompareFunc { get; private set; }

        public GalTextureSampler(
            GalTextureWrap      addressU,
            GalTextureWrap      addressV,
            GalTextureWrap      addressP,
            GalTextureFilter    minFilter,
            GalTextureFilter    magFilter,
            GalTextureMipFilter mipFilter,
            GalColorF           borderColor,
            bool                depthCompare,
            DepthCompareFunc    depthCompareFunc)
        {
            AddressU    = addressU;
            AddressV    = addressV;
            AddressP    = addressP;
            MinFilter   = minFilter;
            MagFilter   = magFilter;
            MipFilter   = mipFilter;
            BorderColor = borderColor;

            DepthCompare     = depthCompare;
            DepthCompareFunc = depthCompareFunc;
        }
    }
}