diff options
Diffstat (limited to 'Ryujinx.Graphics.GAL/Multithreading')
| -rw-r--r-- | Ryujinx.Graphics.GAL/Multithreading/Commands/UpdateRenderScaleCommand.cs | 14 | ||||
| -rw-r--r-- | Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs | 4 |
2 files changed, 8 insertions, 10 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); } } diff --git a/Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs b/Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs index 63a29b1b..6dc8ef38 100644 --- a/Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs +++ b/Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs @@ -353,9 +353,9 @@ namespace Ryujinx.Graphics.GAL.Multithreading return false; } - public void UpdateRenderScale(ShaderStage stage, ReadOnlySpan<float> scales, int textureCount, int imageCount) + public void UpdateRenderScale(ReadOnlySpan<float> scales, int totalCount, int fragmentCount) { - _renderer.New<UpdateRenderScaleCommand>().Set(stage, _renderer.CopySpan(scales.Slice(0, textureCount + imageCount)), textureCount, imageCount); + _renderer.New<UpdateRenderScaleCommand>().Set(_renderer.CopySpan(scales.Slice(0, totalCount)), totalCount, fragmentCount); _renderer.QueueCommand(); } } |
