diff options
Diffstat (limited to 'Ryujinx.Graphics.GAL/Multithreading/Commands/UpdateRenderScaleCommand.cs')
-rw-r--r-- | Ryujinx.Graphics.GAL/Multithreading/Commands/UpdateRenderScaleCommand.cs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Ryujinx.Graphics.GAL/Multithreading/Commands/UpdateRenderScaleCommand.cs b/Ryujinx.Graphics.GAL/Multithreading/Commands/UpdateRenderScaleCommand.cs index fafb52a8..7e1e66b2 100644 --- a/Ryujinx.Graphics.GAL/Multithreading/Commands/UpdateRenderScaleCommand.cs +++ b/Ryujinx.Graphics.GAL/Multithreading/Commands/UpdateRenderScaleCommand.cs @@ -6,22 +6,20 @@ namespace Ryujinx.Graphics.GAL.Multithreading.Commands struct UpdateRenderScaleCommand : IGALCommand { public CommandType CommandType => CommandType.UpdateRenderScale; - private ShaderStage _stage; private SpanRef<float> _scales; - private int _textureCount; - private int _imageCount; + private int _totalCount; + private int _fragmentCount; - public void Set(ShaderStage stage, SpanRef<float> scales, int textureCount, int imageCount) + public void Set(SpanRef<float> scales, int totalCount, int fragmentCount) { - _stage = stage; _scales = scales; - _textureCount = textureCount; - _imageCount = imageCount; + _totalCount = totalCount; + _fragmentCount = fragmentCount; } public static void Run(ref UpdateRenderScaleCommand command, ThreadedRenderer threaded, IRenderer renderer) { - renderer.Pipeline.UpdateRenderScale(command._stage, command._scales.Get(threaded), command._textureCount, command._imageCount); + renderer.Pipeline.UpdateRenderScale(command._scales.Get(threaded), command._totalCount, command._fragmentCount); command._scales.Dispose(threaded); } } |