2018-04-08 20:17:35 +01:00
|
|
|
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; }
|
|
|
|
|
2019-02-28 01:12:24 +00:00
|
|
|
public bool DepthCompare { get; private set; }
|
|
|
|
public DepthCompareFunc DepthCompareFunc { get; private set; }
|
|
|
|
|
2018-04-08 20:17:35 +01:00
|
|
|
public GalTextureSampler(
|
|
|
|
GalTextureWrap AddressU,
|
|
|
|
GalTextureWrap AddressV,
|
|
|
|
GalTextureWrap AddressP,
|
|
|
|
GalTextureFilter MinFilter,
|
|
|
|
GalTextureFilter MagFilter,
|
|
|
|
GalTextureMipFilter MipFilter,
|
2019-02-28 01:12:24 +00:00
|
|
|
GalColorF BorderColor,
|
|
|
|
bool DepthCompare,
|
|
|
|
DepthCompareFunc DepthCompareFunc)
|
2018-04-08 20:17:35 +01:00
|
|
|
{
|
|
|
|
this.AddressU = AddressU;
|
|
|
|
this.AddressV = AddressV;
|
|
|
|
this.AddressP = AddressP;
|
|
|
|
this.MinFilter = MinFilter;
|
|
|
|
this.MagFilter = MagFilter;
|
|
|
|
this.MipFilter = MipFilter;
|
|
|
|
this.BorderColor = BorderColor;
|
2019-02-28 01:12:24 +00:00
|
|
|
|
|
|
|
this.DepthCompare = DepthCompare;
|
|
|
|
this.DepthCompareFunc = DepthCompareFunc;
|
2018-04-08 20:17:35 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|