aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Image/Texture.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-04-25 10:02:18 -0300
committerGitHub <noreply@github.com>2020-04-25 23:02:18 +1000
commit3cb1fa0e853efc04cc183d3ee75ec1bbe2c845a4 (patch)
treecf19d371b99cffdbff03e2f20271927cb7b08bf8 /Ryujinx.Graphics.Gpu/Image/Texture.cs
parenta065dc1626d2fa4cb5c7300a1aa8713ffb4f5896 (diff)
Implement texture buffers (#1152)
* Implement texture buffers * Throw NotSupportedException where appropriate
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/Texture.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Image/Texture.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/Texture.cs b/Ryujinx.Graphics.Gpu/Image/Texture.cs
index ba7dce7b..957c3465 100644
--- a/Ryujinx.Graphics.Gpu/Image/Texture.cs
+++ b/Ryujinx.Graphics.Gpu/Image/Texture.cs
@@ -295,7 +295,9 @@ namespace Ryujinx.Graphics.Gpu.Image
/// </summary>
public void SynchronizeMemory()
{
- if (_sequenceNumber == _context.SequenceNumber && _hasData)
+ // Texture buffers are not handled here, instead they are invalidated (if modified)
+ // when the texture is bound. This is handled by the buffer manager.
+ if ((_sequenceNumber == _context.SequenceNumber && _hasData) || Info.Target == Target.TextureBuffer)
{
return;
}