diff options
| author | riperiperi <rhy3756547@hotmail.com> | 2021-07-16 22:10:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-16 18:10:20 -0300 |
| commit | ca5ac37cd638222e7475ac8f632b878126f3462d (patch) | |
| tree | 7c550f640c54453ebe61bb0797b8b200a69009bd /Ryujinx.Graphics.Gpu/Image/Texture.cs | |
| parent | bb6fab200969531ff858de399879779de5aaeac0 (diff) | |
Flush buffers and texture data through a persistent mapped buffer. (#2481)
* Use persistent buffers to flush texture data
* Flush buffers via copy to persistent buffers.
* Log error when timing out, small refactoring.
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/Texture.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Image/Texture.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/Texture.cs b/Ryujinx.Graphics.Gpu/Image/Texture.cs index 6ca15ea1..c9bff561 100644 --- a/Ryujinx.Graphics.Gpu/Image/Texture.cs +++ b/Ryujinx.Graphics.Gpu/Image/Texture.cs @@ -876,9 +876,9 @@ namespace Ryujinx.Graphics.Gpu.Image /// This is not cheap, avoid doing that unless strictly needed. /// </remarks> /// <returns>Host texture data</returns> - private Span<byte> GetTextureDataFromGpu(bool blacklist, ITexture texture = null) + private ReadOnlySpan<byte> GetTextureDataFromGpu(bool blacklist, ITexture texture = null) { - Span<byte> data; + ReadOnlySpan<byte> data; if (texture != null) { |
