diff options
author | Subv <subv2112@gmail.com> | 2018-04-25 04:58:45 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-04-25 18:55:30 +0200 |
commit | 1dd4861d38b862724052a5db66067d77ede468d4 (patch) | |
tree | 8e6db1e5dcbe180ce341f9872ba6e382d8baaac9 /src/video_core/textures/decoders.h | |
parent | GPU: Added a function to retrieve the bytes per pixel of the render target formats. (diff) | |
download | yuzu-1dd4861d38b862724052a5db66067d77ede468d4.tar yuzu-1dd4861d38b862724052a5db66067d77ede468d4.tar.gz yuzu-1dd4861d38b862724052a5db66067d77ede468d4.tar.bz2 yuzu-1dd4861d38b862724052a5db66067d77ede468d4.tar.lz yuzu-1dd4861d38b862724052a5db66067d77ede468d4.tar.xz yuzu-1dd4861d38b862724052a5db66067d77ede468d4.tar.zst yuzu-1dd4861d38b862724052a5db66067d77ede468d4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/textures/decoders.h | 4 |
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. */ |