diff options
author | Subv <subv2112@gmail.com> | 2018-03-22 21:17:10 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-03-24 17:30:56 +0100 |
commit | 1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15 (patch) | |
tree | dc74d1d4ef4ce25613f2b399ad286911d871457e /src/video_core/textures/decoders.h | |
parent | GPU: Preliminary work for texture decoding. (diff) | |
download | yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.tar yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.tar.gz yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.tar.bz2 yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.tar.lz yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.tar.xz yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.tar.zst yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/textures/decoders.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/video_core/textures/decoders.h b/src/video_core/textures/decoders.h index e0d55600e..0c21694ff 100644 --- a/src/video_core/textures/decoders.h +++ b/src/video_core/textures/decoders.h @@ -12,9 +12,15 @@ namespace Tegra { namespace Texture { /** - * Decodes a swizzled texture into a RGBA8888 texture. + * Unswizzles a swizzled texture without changing its format. */ -std::vector<u8> DecodeTexture(VAddr address, TextureFormat format, u32 width, u32 height); +std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width, u32 height); + +/** + * Decodes an unswizzled texture into a A8R8G8B8 texture. + */ +std::vector<u8> DecodeTexture(const std::vector<u8>& texture_data, TextureFormat format, u32 width, + u32 height); } // namespace Texture } // namespace Tegra |