diff options
| author | gdk <gab.dark.100@gmail.com> | 2019-10-13 03:02:07 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 1876b346fea647e8284a66bb6d62c38801035cff (patch) | |
| tree | 6eeff094298cda84d1613dc5ec0691e51d7b35f1 /Ryujinx.Graphics.GAL/Sampler | |
| parent | f617fb542a0e3d36012d77a4b5acbde7b08902f2 (diff) | |
Initial work
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 |
