aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/GalTextureSampler.cs
blob: 1d658cea85b7b44992b37895e4c57bbd0325cc93 (plain)
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)
        {
            this.AddressU    = AddressU;
            this.AddressV    = AddressV;
            this.AddressP    = AddressP;
            this.MinFilter   = MinFilter;
            this.MagFilter   = MagFilter;
            this.MipFilter   = MipFilter;
            this.BorderColor = BorderColor;

            this.DepthCompare     = DepthCompare;
            this.DepthCompareFunc = DepthCompareFunc;
        }
    }
}