diff options
| author | gdk <gab.dark.100@gmail.com> | 2019-10-26 14:50:52 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 8cba252b238ee6cf6599ad2fc57793e6f76c5e2e (patch) | |
| tree | 5ee98eb374a46e210d4a960f5e1d58b42b3f27eb /Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs | |
| parent | 1b7d95519569639135a68e7ebda5148f3263217c (diff) | |
Add per-source type memory change tracking, simplified state change tracking, other fixes
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs b/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs index e2c40805..887f520d 100644 --- a/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs +++ b/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs @@ -7,8 +7,8 @@ namespace Ryujinx.Graphics.Gpu.Engine { private void CopyTexture(int argument) { - CopyTexture dstCopyTexture = _context.State.GetCopyDstTexture(); - CopyTexture srcCopyTexture = _context.State.GetCopySrcTexture(); + var dstCopyTexture = _context.State.Get<CopyTexture>(MethodOffset.CopyDstTexture); + var srcCopyTexture = _context.State.Get<CopyTexture>(MethodOffset.CopySrcTexture); Image.Texture srcTexture = _textureManager.FindOrCreateTexture(srcCopyTexture); @@ -32,9 +32,9 @@ namespace Ryujinx.Graphics.Gpu.Engine return; } - CopyTextureControl control = _context.State.GetCopyTextureControl(); + var control = _context.State.Get<CopyTextureControl>(MethodOffset.CopyTextureControl); - CopyRegion region = _context.State.GetCopyRegion(); + var region = _context.State.Get<CopyRegion>(MethodOffset.CopyRegion); int srcX1 = (int)(region.SrcXF >> 32); int srcY1 = (int)(region.SrcYF >> 32); |
