aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/DepthStencil
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2019-12-29 14:41:50 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commit654e617fe78b0f5cc86d0bcf0625301abff168f5 (patch)
tree01f2eba89039698bec583a3e29c4c50d0e20b8d1 /Ryujinx.Graphics.GAL/DepthStencil
parentaf8498d6790ba83f1cf87eccf5f272f2ccbeb169 (diff)
Some code cleanup
Diffstat (limited to 'Ryujinx.Graphics.GAL/DepthStencil')
-rw-r--r--Ryujinx.Graphics.GAL/DepthStencil/DepthStencilState.cs47
-rw-r--r--Ryujinx.Graphics.GAL/DepthStencil/DepthTestDescriptor.cs20
-rw-r--r--Ryujinx.Graphics.GAL/DepthStencil/StencilOp.cs14
-rw-r--r--Ryujinx.Graphics.GAL/DepthStencil/StencilTestDescriptor.cs56
4 files changed, 0 insertions, 137 deletions
diff --git a/Ryujinx.Graphics.GAL/DepthStencil/DepthStencilState.cs b/Ryujinx.Graphics.GAL/DepthStencil/DepthStencilState.cs
deleted file mode 100644
index 93b8d50e..00000000
--- a/Ryujinx.Graphics.GAL/DepthStencil/DepthStencilState.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-namespace Ryujinx.Graphics.GAL.DepthStencil
-{
- public struct DepthStencilState
- {
- public bool DepthTestEnable { get; }
- public bool DepthWriteEnable { get; }
- public bool StencilTestEnable { get; }
-
- public CompareOp DepthFunc { get; }
- public CompareOp StencilFrontFunc { get; }
- public StencilOp StencilFrontSFail { get; }
- public StencilOp StencilFrontDpPass { get; }
- public StencilOp StencilFrontDpFail { get; }
- public CompareOp StencilBackFunc { get; }
- public StencilOp StencilBackSFail { get; }
- public StencilOp StencilBackDpPass { get; }
- public StencilOp StencilBackDpFail { get; }
-
- public DepthStencilState(
- bool depthTestEnable,
- bool depthWriteEnable,
- bool stencilTestEnable,
- CompareOp depthFunc,
- CompareOp stencilFrontFunc,
- StencilOp stencilFrontSFail,
- StencilOp stencilFrontDpPass,
- StencilOp stencilFrontDpFail,
- CompareOp stencilBackFunc,
- StencilOp stencilBackSFail,
- StencilOp stencilBackDpPass,
- StencilOp stencilBackDpFail)
- {
- DepthTestEnable = depthTestEnable;
- DepthWriteEnable = depthWriteEnable;
- StencilTestEnable = stencilTestEnable;
- DepthFunc = depthFunc;
- StencilFrontFunc = stencilFrontFunc;
- StencilFrontSFail = stencilFrontSFail;
- StencilFrontDpPass = stencilFrontDpPass;
- StencilFrontDpFail = stencilFrontDpFail;
- StencilBackFunc = stencilBackFunc;
- StencilBackSFail = stencilBackSFail;
- StencilBackDpPass = stencilBackDpPass;
- StencilBackDpFail = stencilBackDpFail;
- }
- }
-}
diff --git a/Ryujinx.Graphics.GAL/DepthStencil/DepthTestDescriptor.cs b/Ryujinx.Graphics.GAL/DepthStencil/DepthTestDescriptor.cs
deleted file mode 100644
index 98b1429b..00000000
--- a/Ryujinx.Graphics.GAL/DepthStencil/DepthTestDescriptor.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-namespace Ryujinx.Graphics.GAL.DepthStencil
-{
- public struct DepthTestDescriptor
- {
- public bool TestEnable { get; }
- public bool WriteEnable { get; }
-
- public CompareOp Func { get; }
-
- public DepthTestDescriptor(
- bool testEnable,
- bool writeEnable,
- CompareOp func)
- {
- TestEnable = testEnable;
- WriteEnable = writeEnable;
- Func = func;
- }
- }
-}
diff --git a/Ryujinx.Graphics.GAL/DepthStencil/StencilOp.cs b/Ryujinx.Graphics.GAL/DepthStencil/StencilOp.cs
deleted file mode 100644
index 3818c6a5..00000000
--- a/Ryujinx.Graphics.GAL/DepthStencil/StencilOp.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-namespace Ryujinx.Graphics.GAL.DepthStencil
-{
- public enum StencilOp
- {
- Keep = 1,
- Zero,
- Replace,
- IncrementAndClamp,
- DecrementAndClamp,
- Invert,
- IncrementAndWrap,
- DecrementAndWrap
- }
-} \ No newline at end of file
diff --git a/Ryujinx.Graphics.GAL/DepthStencil/StencilTestDescriptor.cs b/Ryujinx.Graphics.GAL/DepthStencil/StencilTestDescriptor.cs
deleted file mode 100644
index 2db53172..00000000
--- a/Ryujinx.Graphics.GAL/DepthStencil/StencilTestDescriptor.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-namespace Ryujinx.Graphics.GAL.DepthStencil
-{
- public struct StencilTestDescriptor
- {
- public bool TestEnable { get; }
-
- public CompareOp FrontFunc { get; }
- public StencilOp FrontSFail { get; }
- public StencilOp FrontDpPass { get; }
- public StencilOp FrontDpFail { get; }
- public int FrontFuncRef { get; }
- public int FrontFuncMask { get; }
- public int FrontMask { get; }
- public CompareOp BackFunc { get; }
- public StencilOp BackSFail { get; }
- public StencilOp BackDpPass { get; }
- public StencilOp BackDpFail { get; }
- public int BackFuncRef { get; }
- public int BackFuncMask { get; }
- public int BackMask { get; }
-
- public StencilTestDescriptor(
- bool testEnable,
- CompareOp frontFunc,
- StencilOp frontSFail,
- StencilOp frontDpPass,
- StencilOp frontDpFail,
- int frontFuncRef,
- int frontFuncMask,
- int frontMask,
- CompareOp backFunc,
- StencilOp backSFail,
- StencilOp backDpPass,
- StencilOp backDpFail,
- int backFuncRef,
- int backFuncMask,
- int backMask)
- {
- TestEnable = testEnable;
- FrontFunc = frontFunc;
- FrontSFail = frontSFail;
- FrontDpPass = frontDpPass;
- FrontDpFail = frontDpFail;
- FrontFuncRef = frontFuncRef;
- FrontFuncMask = frontFuncMask;
- FrontMask = frontMask;
- BackFunc = backFunc;
- BackSFail = backSFail;
- BackDpPass = backDpPass;
- BackDpFail = backDpFail;
- BackFuncRef = backFuncRef;
- BackFuncMask = backFuncMask;
- BackMask = backMask;
- }
- }
-}