aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/GalTextureSampler.cs
blob: b9e5c7658d0086d39bce9e2f2630a723b191d13e (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
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 GalTextureSampler(
            GalTextureWrap      AddressU,
            GalTextureWrap      AddressV,
            GalTextureWrap      AddressP,
            GalTextureFilter    MinFilter,
            GalTextureFilter    MagFilter,
            GalTextureMipFilter MipFilter,
            GalColorF           BorderColor)
        {
            this.AddressU    = AddressU;
            this.AddressV    = AddressV;
            this.AddressP    = AddressP;
            this.MinFilter   = MinFilter;
            this.MagFilter   = MagFilter;
            this.MipFilter   = MipFilter;
            this.BorderColor = BorderColor;
        }
    }
}