From f373f870f769ef65c435aa307dc3fa1be6dc6fae Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 1 Feb 2020 20:19:46 -0300 Subject: Support configurable point size (#916) --- Ryujinx.Graphics.Gpu/Engine/Methods.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Ryujinx.Graphics.Gpu/Engine/Methods.cs') diff --git a/Ryujinx.Graphics.Gpu/Engine/Methods.cs b/Ryujinx.Graphics.Gpu/Engine/Methods.cs index 31769f5a..d9e7582b 100644 --- a/Ryujinx.Graphics.Gpu/Engine/Methods.cs +++ b/Ryujinx.Graphics.Gpu/Engine/Methods.cs @@ -161,6 +161,11 @@ namespace Ryujinx.Graphics.Gpu.Engine UpdateVertexAttribState(state); } + if (state.QueryModified(MethodOffset.PointSize)) + { + UpdatePointSizeState(state); + } + if (state.QueryModified(MethodOffset.PrimitiveRestartState)) { UpdatePrimitiveRestartState(state); @@ -507,6 +512,17 @@ namespace Ryujinx.Graphics.Gpu.Engine _context.Renderer.Pipeline.SetVertexAttribs(vertexAttribs); } + /// + /// Updates host point size based on guest GPU state. + /// + /// Current GPU state + private void UpdatePointSizeState(GpuState state) + { + float size = state.Get(MethodOffset.PointSize); + + _context.Renderer.Pipeline.SetPointSize(size); + } + /// /// Updates host primitive restart based on guest GPU state. /// -- cgit v1.2.3