aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/IGalFrameBuffer.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-07-19 02:30:21 -0300
committerGitHub <noreply@github.com>2018-07-19 02:30:21 -0300
commit60f2198a1e8e61fe1cfb8da30a6afcd86a672a85 (patch)
treebe608a9f483e751d6d4bf4d9037048c94d495b0d /Ryujinx.Graphics/Gal/IGalFrameBuffer.cs
parent8b685b12f0b7a901139999dff17b24b049b9084b (diff)
Support deswizzle of sparse tiled textures and some frame buffer fixes (#275)
* Attempt to support deswizzle of sparse tiled textures * Use correct frame buffer and viewport sizes, started to clean up the copy engine * Correct texture width alignment * Use Scale/Translate registers to calculate viewport rect * Allow texture copy between frame buffers
Diffstat (limited to 'Ryujinx.Graphics/Gal/IGalFrameBuffer.cs')
-rw-r--r--Ryujinx.Graphics/Gal/IGalFrameBuffer.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Gal/IGalFrameBuffer.cs b/Ryujinx.Graphics/Gal/IGalFrameBuffer.cs
index eaae0a49..1f62bdb3 100644
--- a/Ryujinx.Graphics/Gal/IGalFrameBuffer.cs
+++ b/Ryujinx.Graphics/Gal/IGalFrameBuffer.cs
@@ -22,6 +22,25 @@ namespace Ryujinx.Graphics.Gal
void Render();
+ void Copy(
+ long SrcKey,
+ long DstKey,
+ int SrcX0,
+ int SrcY0,
+ int SrcX1,
+ int SrcY1,
+ int DstX0,
+ int DstY0,
+ int DstX1,
+ int DstY1);
+
void GetBufferData(long Key, Action<byte[]> Callback);
+
+ void SetBufferData(
+ long Key,
+ int Width,
+ int Height,
+ GalTextureFormat Format,
+ byte[] Buffer);
}
} \ No newline at end of file