aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2019-12-07 01:54:28 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commit7ce5584f9e0d86f17ea4fc781483f60cfa288340 (patch)
tree1fe59d43bbd7a84687f6ad65156704718eeb852c /Ryujinx.Graphics.GAL
parent17fb11ddb98e94aaf494eaf6002ab149c5d54000 (diff)
Support depth clip mode and disable shader fast math optimization on NVIDIA as a workaround for compiler bugs (?)
Diffstat (limited to 'Ryujinx.Graphics.GAL')
-rw-r--r--Ryujinx.Graphics.GAL/DepthMode.cs8
-rw-r--r--Ryujinx.Graphics.GAL/IPipeline.cs2
2 files changed, 10 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.GAL/DepthMode.cs b/Ryujinx.Graphics.GAL/DepthMode.cs
new file mode 100644
index 00000000..aafbb65a
--- /dev/null
+++ b/Ryujinx.Graphics.GAL/DepthMode.cs
@@ -0,0 +1,8 @@
+namespace Ryujinx.Graphics.GAL
+{
+ public enum DepthMode
+ {
+ MinusOneToOne,
+ ZeroToOne
+ }
+} \ No newline at end of file
diff --git a/Ryujinx.Graphics.GAL/IPipeline.cs b/Ryujinx.Graphics.GAL/IPipeline.cs
index 77060689..7211fbe0 100644
--- a/Ryujinx.Graphics.GAL/IPipeline.cs
+++ b/Ryujinx.Graphics.GAL/IPipeline.cs
@@ -49,6 +49,8 @@ namespace Ryujinx.Graphics.GAL
void SetDepthBias(PolygonModeMask enables, float factor, float units, float clamp);
+ void SetDepthMode(DepthMode mode);
+
void SetDepthTest(DepthTestDescriptor depthTest);
void SetFaceCulling(bool enable, Face face);