diff options
author | gdkchan <gab.dark.100@gmail.com> | 2022-08-25 23:16:41 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 02:16:41 +0000 |
commit | 923089a29825cad8159a63616d14dcbd7161cb3c (patch) | |
tree | 99c7e39baba29a743dcccbdb046b2db3d5148d45 /Ryujinx.Graphics.GAL/Multithreading/Resources/ThreadedTexture.cs | |
parent | d9aa15eb243bc1b40892c9fcfcbb0e9ef66cfa63 (diff) |
Fast path for Inline-to-Memory texture data transfers (#3610)1.1.233
* Fast path for Inline-to-Memory texture data transfers
* Only do it for block linear textures to be on the safe side
Diffstat (limited to 'Ryujinx.Graphics.GAL/Multithreading/Resources/ThreadedTexture.cs')
-rw-r--r-- | Ryujinx.Graphics.GAL/Multithreading/Resources/ThreadedTexture.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.GAL/Multithreading/Resources/ThreadedTexture.cs b/Ryujinx.Graphics.GAL/Multithreading/Resources/ThreadedTexture.cs index 64d8aa3b..1e7d86ba 100644 --- a/Ryujinx.Graphics.GAL/Multithreading/Resources/ThreadedTexture.cs +++ b/Ryujinx.Graphics.GAL/Multithreading/Resources/ThreadedTexture.cs @@ -119,6 +119,12 @@ namespace Ryujinx.Graphics.GAL.Multithreading.Resources _renderer.QueueCommand(); } + public void SetData(ReadOnlySpan<byte> data, int layer, int level, Rectangle<int> region) + { + _renderer.New<TextureSetDataSliceRegionCommand>().Set(Ref(this), Ref(data.ToArray()), layer, level, region); + _renderer.QueueCommand(); + } + public void SetStorage(BufferRange buffer) { _renderer.New<TextureSetStorageCommand>().Set(Ref(this), buffer); |