2019-12-29 10:41:50 -07:00
|
|
|
namespace Ryujinx.Graphics.GAL
|
2019-10-13 00:02:07 -06:00
|
|
|
{
|
|
|
|
public struct SamplerCreateInfo
|
|
|
|
{
|
|
|
|
public MinFilter MinFilter { get; }
|
|
|
|
public MagFilter MagFilter { get; }
|
|
|
|
|
2020-11-02 13:03:06 -07:00
|
|
|
public bool SeamlessCubemap { get; }
|
|
|
|
|
2019-10-13 00:02:07 -06:00
|
|
|
public AddressMode AddressU { get; }
|
|
|
|
public AddressMode AddressV { get; }
|
|
|
|
public AddressMode AddressP { get; }
|
|
|
|
|
|
|
|
public CompareMode CompareMode { get; }
|
|
|
|
public CompareOp CompareOp { get; }
|
|
|
|
|
|
|
|
public ColorF BorderColor { get; }
|
|
|
|
|
|
|
|
public float MinLod { get; }
|
|
|
|
public float MaxLod { get; }
|
|
|
|
public float MipLodBias { get; }
|
|
|
|
public float MaxAnisotropy { get; }
|
|
|
|
|
|
|
|
public SamplerCreateInfo(
|
|
|
|
MinFilter minFilter,
|
|
|
|
MagFilter magFilter,
|
2020-11-02 13:03:06 -07:00
|
|
|
bool seamlessCubemap,
|
2019-10-13 00:02:07 -06:00
|
|
|
AddressMode addressU,
|
|
|
|
AddressMode addressV,
|
|
|
|
AddressMode addressP,
|
|
|
|
CompareMode compareMode,
|
|
|
|
CompareOp compareOp,
|
|
|
|
ColorF borderColor,
|
|
|
|
float minLod,
|
|
|
|
float maxLod,
|
|
|
|
float mipLodBias,
|
|
|
|
float maxAnisotropy)
|
|
|
|
{
|
2020-11-02 13:03:06 -07:00
|
|
|
MinFilter = minFilter;
|
|
|
|
MagFilter = magFilter;
|
|
|
|
SeamlessCubemap = seamlessCubemap;
|
|
|
|
AddressU = addressU;
|
|
|
|
AddressV = addressV;
|
|
|
|
AddressP = addressP;
|
|
|
|
CompareMode = compareMode;
|
|
|
|
CompareOp = compareOp;
|
|
|
|
BorderColor = borderColor;
|
|
|
|
MinLod = minLod;
|
|
|
|
MaxLod = maxLod;
|
|
|
|
MipLodBias = mipLodBias;
|
|
|
|
MaxAnisotropy = maxAnisotropy;
|
2019-10-13 00:02:07 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|