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