From 5ff6ea6d82db2fb6ee8035ac43c0a80092241bb0 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Mon, 4 Sep 2023 20:16:09 -0300 Subject: [PATCH] Fix ShaderTools GpuAcessor default values (#5646) --- src/Ryujinx.Graphics.Shader/IGpuAccessor.cs | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.Graphics.Shader/IGpuAccessor.cs b/src/Ryujinx.Graphics.Shader/IGpuAccessor.cs index ba10f2720d..4dc75a3e1b 100644 --- a/src/Ryujinx.Graphics.Shader/IGpuAccessor.cs +++ b/src/Ryujinx.Graphics.Shader/IGpuAccessor.cs @@ -128,7 +128,26 @@ namespace Ryujinx.Graphics.Shader /// GPU graphics state GpuGraphicsState QueryGraphicsState() { - return default; + return new GpuGraphicsState( + false, + InputTopology.Points, + false, + TessPatchType.Triangles, + TessSpacing.EqualSpacing, + false, + false, + false, + false, + false, + 1f, + AlphaTestOp.Always, + 0f, + default, + true, + default, + false, + false, + false); } ///