From 7ce5584f9e0d86f17ea4fc781483f60cfa288340 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 7 Dec 2019 01:54:28 -0300 Subject: Support depth clip mode and disable shader fast math optimization on NVIDIA as a workaround for compiler bugs (?) --- Ryujinx.Graphics.GAL/DepthMode.cs | 8 ++++++++ Ryujinx.Graphics.GAL/IPipeline.cs | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 Ryujinx.Graphics.GAL/DepthMode.cs (limited to 'Ryujinx.Graphics.GAL') 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); -- cgit v1.2.3