2018-04-08 12:17:35 -07: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-27 17:12:24 -08:00
|
|
|
public bool DepthCompare { get; private set; }
|
|
|
|
public DepthCompareFunc DepthCompareFunc { get; private set; }
|
|
|
|
|
2018-04-08 12:17:35 -07:00
|
|
|
public GalTextureSampler(
|
2019-03-03 17:45:25 -08:00
|
|
|
GalTextureWrap addressU,
|
|
|
|
GalTextureWrap addressV,
|
|
|
|
GalTextureWrap addressP,
|
|
|
|
GalTextureFilter minFilter,
|
|
|
|
GalTextureFilter magFilter,
|
|
|
|
GalTextureMipFilter mipFilter,
|
|
|
|
GalColorF borderColor,
|
|
|
|
bool depthCompare,
|
|
|
|
DepthCompareFunc depthCompareFunc)
|
2018-04-08 12:17:35 -07:00
|
|
|
{
|
2019-03-03 17:45:25 -08:00
|
|
|
AddressU = addressU;
|
|
|
|
AddressV = addressV;
|
|
|
|
AddressP = addressP;
|
|
|
|
MinFilter = minFilter;
|
|
|
|
MagFilter = magFilter;
|
|
|
|
MipFilter = mipFilter;
|
|
|
|
BorderColor = borderColor;
|
2019-02-27 17:12:24 -08:00
|
|
|
|
2019-03-03 17:45:25 -08:00
|
|
|
DepthCompare = depthCompare;
|
|
|
|
DepthCompareFunc = depthCompareFunc;
|
2018-04-08 12:17:35 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|