diff options
Diffstat (limited to 'Ryujinx.Graphics.GAL/Sampler')
| -rw-r--r-- | Ryujinx.Graphics.GAL/Sampler/AddressMode.cs | 14 | ||||
| -rw-r--r-- | Ryujinx.Graphics.GAL/Sampler/CompareMode.cs | 8 | ||||
| -rw-r--r-- | Ryujinx.Graphics.GAL/Sampler/MagFilter.cs | 8 | ||||
| -rw-r--r-- | Ryujinx.Graphics.GAL/Sampler/MinFilter.cs | 12 | ||||
| -rw-r--r-- | Ryujinx.Graphics.GAL/Sampler/SamplerCreateInfo.cs | 52 |
5 files changed, 94 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.GAL/Sampler/AddressMode.cs b/Ryujinx.Graphics.GAL/Sampler/AddressMode.cs new file mode 100644 index 00000000..4f56d892 --- /dev/null +++ b/Ryujinx.Graphics.GAL/Sampler/AddressMode.cs @@ -0,0 +1,14 @@ +namespace Ryujinx.Graphics.GAL.Sampler +{ + public enum AddressMode + { + Repeat, + MirroredRepeat, + ClampToEdge, + ClampToBorder, + Clamp, + MirrorClampToEdge, + MirrorClampToBorder, + MirrorClamp + } +}
\ No newline at end of file diff --git a/Ryujinx.Graphics.GAL/Sampler/CompareMode.cs b/Ryujinx.Graphics.GAL/Sampler/CompareMode.cs new file mode 100644 index 00000000..ca4b09a0 --- /dev/null +++ b/Ryujinx.Graphics.GAL/Sampler/CompareMode.cs @@ -0,0 +1,8 @@ +namespace Ryujinx.Graphics.GAL.Sampler +{ + public enum CompareMode + { + None, + CompareRToTexture + } +}
\ No newline at end of file diff --git a/Ryujinx.Graphics.GAL/Sampler/MagFilter.cs b/Ryujinx.Graphics.GAL/Sampler/MagFilter.cs new file mode 100644 index 00000000..3c9c9de6 --- /dev/null +++ b/Ryujinx.Graphics.GAL/Sampler/MagFilter.cs @@ -0,0 +1,8 @@ +namespace Ryujinx.Graphics.GAL.Sampler +{ + public enum MagFilter + { + Nearest = 1, + Linear + } +}
\ No newline at end of file diff --git a/Ryujinx.Graphics.GAL/Sampler/MinFilter.cs b/Ryujinx.Graphics.GAL/Sampler/MinFilter.cs new file mode 100644 index 00000000..d012f695 --- /dev/null +++ b/Ryujinx.Graphics.GAL/Sampler/MinFilter.cs @@ -0,0 +1,12 @@ +namespace Ryujinx.Graphics.GAL.Sampler +{ + public enum MinFilter + { + Nearest = 1, + Linear, + NearestMipmapNearest, + LinearMipmapNearest, + NearestMipmapLinear, + LinearMipmapLinear + } +}
\ No newline at end of file diff --git a/Ryujinx.Graphics.GAL/Sampler/SamplerCreateInfo.cs b/Ryujinx.Graphics.GAL/Sampler/SamplerCreateInfo.cs new file mode 100644 index 00000000..3f42742b --- /dev/null +++ b/Ryujinx.Graphics.GAL/Sampler/SamplerCreateInfo.cs @@ -0,0 +1,52 @@ +using Ryujinx.Graphics.GAL.Color; + +namespace Ryujinx.Graphics.GAL.Sampler +{ + public struct SamplerCreateInfo + { + public MinFilter MinFilter { get; } + public MagFilter MagFilter { get; } + + 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, + AddressMode addressU, + AddressMode addressV, + AddressMode addressP, + CompareMode compareMode, + CompareOp compareOp, + ColorF borderColor, + float minLod, + float maxLod, + float mipLodBias, + float maxAnisotropy) + { + MinFilter = minFilter; + MagFilter = magFilter; + AddressU = addressU; + AddressV = addressV; + AddressP = addressP; + CompareMode = compareMode; + CompareOp = compareOp; + BorderColor = borderColor; + MinLod = minLod; + MaxLod = maxLod; + MipLodBias = mipLodBias; + MaxAnisotropy = maxAnisotropy; + } + } +}
\ No newline at end of file |
