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