diff options
| author | gdk <gab.dark.100@gmail.com> | 2019-11-21 23:46:14 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 2437ccca0e82b8b2a99d8632acf28ca0cc14c523 (patch) | |
| tree | fff04c08f5812b602378f352650144736983497a /Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs | |
| parent | 3ca675223a495f7d0a9d2130b8d88d9c5c79747e (diff) | |
Separate sub-channel state
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs b/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs index 887f520d..c482451a 100644 --- a/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs +++ b/Ryujinx.Graphics.Gpu/Engine/MethodCopyTexture.cs @@ -5,10 +5,10 @@ namespace Ryujinx.Graphics.Gpu.Engine { partial class Methods { - private void CopyTexture(int argument) + private void CopyTexture(GpuState state, int argument) { - var dstCopyTexture = _context.State.Get<CopyTexture>(MethodOffset.CopyDstTexture); - var srcCopyTexture = _context.State.Get<CopyTexture>(MethodOffset.CopySrcTexture); + var dstCopyTexture = state.Get<CopyTexture>(MethodOffset.CopyDstTexture); + var srcCopyTexture = state.Get<CopyTexture>(MethodOffset.CopySrcTexture); Image.Texture srcTexture = _textureManager.FindOrCreateTexture(srcCopyTexture); @@ -32,9 +32,9 @@ namespace Ryujinx.Graphics.Gpu.Engine return; } - var control = _context.State.Get<CopyTextureControl>(MethodOffset.CopyTextureControl); + var control = state.Get<CopyTextureControl>(MethodOffset.CopyTextureControl); - var region = _context.State.Get<CopyRegion>(MethodOffset.CopyRegion); + var region = state.Get<CopyRegion>(MethodOffset.CopyRegion); int srcX1 = (int)(region.SrcXF >> 32); int srcY1 = (int)(region.SrcYF >> 32); |
