aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/textures/decoders.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-03-22 15:17:10 -0500
committerSubv <subv2112@gmail.com>2018-03-24 11:30:56 -0500
commit1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15 (patch)
treedc74d1d4ef4ce25613f2b399ad286911d871457e /src/video_core/textures/decoders.h
parent71ebc3e90da9882139d2a5695ca1ed59ea77e94f (diff)
GPU: Added a method to unswizzle a texture without decoding it.
Allow unswizzling of DXT1 textures.
Diffstat (limited to 'src/video_core/textures/decoders.h')
-rw-r--r--src/video_core/textures/decoders.h10
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