diff options
author | gdkchan <gab.dark.100@gmail.com> | 2020-02-01 20:19:46 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-02 10:19:46 +1100 |
commit | f373f870f769ef65c435aa307dc3fa1be6dc6fae (patch) | |
tree | 31b48f768d8afc1a924facd16a030e3f06cc237f /Ryujinx.Graphics.Gpu/Engine/Methods.cs | |
parent | a1a5341bafa82d4346cb4ee61f43dcd94d53a6de (diff) |
Support configurable point size (#916)
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/Methods.cs')
-rw-r--r-- | Ryujinx.Graphics.Gpu/Engine/Methods.cs | 16 |
1 files changed, 16 insertions, 0 deletions
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); @@ -508,6 +513,17 @@ namespace Ryujinx.Graphics.Gpu.Engine } /// <summary> + /// Updates host point size based on guest GPU state. + /// </summary> + /// <param name="state">Current GPU state</param> + private void UpdatePointSizeState(GpuState state) + { + float size = state.Get<float>(MethodOffset.PointSize); + + _context.Renderer.Pipeline.SetPointSize(size); + } + + /// <summary> /// Updates host primitive restart based on guest GPU state. /// </summary> /// <param name="state">Current GPU state</param> |