aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/textures/decoders.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-25 20:40:17 -0400
committerGitHub <noreply@github.com>2018-04-25 20:40:17 -0400
commit42d43ea741886b9592fd7dfd57c33228afacf44c (patch)
treeabfeb405b9c710816ad9ea8e06ea14854c0eb4a9 /src/video_core/textures/decoders.h
parentd0825c951902d7aecc3c89c7f31f246b75befd95 (diff)
parent20d86d8a36dca4bf1b465193745a365c3ab9abcd (diff)
Merge pull request #387 from Subv/maxwell_2d
GPU: Partially implemented the 2D surface copy engine
Diffstat (limited to 'src/video_core/textures/decoders.h')
-rw-r--r--src/video_core/textures/decoders.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.h b/src/video_core/textures/decoders.h
index a700911cf..2562c4b06 100644
--- a/src/video_core/textures/decoders.h
+++ b/src/video_core/textures/decoders.h
@@ -17,6 +17,10 @@ namespace Texture {
std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width, u32 height,
u32 block_height = TICEntry::DefaultBlockHeight);
+/// Copies texture data from a buffer and performs swizzling/unswizzling as necessary.
+void CopySwizzledData(u32 width, u32 height, u32 bytes_per_pixel, u32 out_bytes_per_pixel,
+ u8* swizzled_data, u8* unswizzled_data, bool unswizzle, u32 block_height);
+
/**
* Decodes an unswizzled texture into a A8R8G8B8 texture.
*/