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