diff options
author | riperiperi <rhy3756547@hotmail.com> | 2022-05-12 14:47:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-12 10:47:13 -0300 |
commit | 43b4b34376cdea486906f8bb4058dda3be7e1bd8 (patch) | |
tree | 66e11982136335f0d7b180f9234b326ee5b3bf10 /Ryujinx.Graphics.GAL/Multithreading/Commands/SetViewportsCommand.cs | |
parent | 92ca1cb0cbab228e5ef22645cd4f9d06b1da4766 (diff) |
Implement Viewport Transform Disable (#3328)1.1.120
* Initial implementation (no specialization)
* Use specialization
* Fix render scale, increase code gen version
* Revert accidental change
* Address Feedback
Diffstat (limited to 'Ryujinx.Graphics.GAL/Multithreading/Commands/SetViewportsCommand.cs')
-rw-r--r-- | Ryujinx.Graphics.GAL/Multithreading/Commands/SetViewportsCommand.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.GAL/Multithreading/Commands/SetViewportsCommand.cs b/Ryujinx.Graphics.GAL/Multithreading/Commands/SetViewportsCommand.cs index e11b00e8..b208d9fe 100644 --- a/Ryujinx.Graphics.GAL/Multithreading/Commands/SetViewportsCommand.cs +++ b/Ryujinx.Graphics.GAL/Multithreading/Commands/SetViewportsCommand.cs @@ -9,17 +9,19 @@ namespace Ryujinx.Graphics.GAL.Multithreading.Commands public CommandType CommandType => CommandType.SetViewports; private int _first; private SpanRef<Viewport> _viewports; + private bool _disableTransform; - public void Set(int first, SpanRef<Viewport> viewports) + public void Set(int first, SpanRef<Viewport> viewports, bool disableTransform) { _first = first; _viewports = viewports; + _disableTransform = disableTransform; } public static void Run(ref SetViewportsCommand command, ThreadedRenderer threaded, IRenderer renderer) { ReadOnlySpan<Viewport> viewports = command._viewports.Get(threaded); - renderer.Pipeline.SetViewports(command._first, viewports); + renderer.Pipeline.SetViewports(command._first, viewports, command._disableTransform); command._viewports.Dispose(threaded); } } |