summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/decoders.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-02 19:42:04 +0200
committerSubv <subv2112@gmail.com>2018-07-02 19:42:04 +0200
commit0f929762b3ba722bab1290a9fe23fc8ad6e909f4 (patch)
treef5cd01068b0df8906b3ee5804ff9d240e88674ac /src/video_core/textures/decoders.h
parentMerge pull request #602 from Subv/mufu_subop (diff)
downloadyuzu-0f929762b3ba722bab1290a9fe23fc8ad6e909f4.tar
yuzu-0f929762b3ba722bab1290a9fe23fc8ad6e909f4.tar.gz
yuzu-0f929762b3ba722bab1290a9fe23fc8ad6e909f4.tar.bz2
yuzu-0f929762b3ba722bab1290a9fe23fc8ad6e909f4.tar.lz
yuzu-0f929762b3ba722bab1290a9fe23fc8ad6e909f4.tar.xz
yuzu-0f929762b3ba722bab1290a9fe23fc8ad6e909f4.tar.zst
yuzu-0f929762b3ba722bab1290a9fe23fc8ad6e909f4.zip
Diffstat (limited to 'src/video_core/textures/decoders.h')
-rw-r--r--src/video_core/textures/decoders.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.h b/src/video_core/textures/decoders.h
index 2562c4b06..2b088c077 100644
--- a/src/video_core/textures/decoders.h
+++ b/src/video_core/textures/decoders.h
@@ -17,6 +17,12 @@ namespace Texture {
std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width, u32 height,
u32 block_height = TICEntry::DefaultBlockHeight);
+/**
+ * Unswizzles a swizzled depth texture without changing its format.
+ */
+std::vector<u8> UnswizzleDepthTexture(VAddr address, DepthFormat 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);