diff options
author | bunnei <bunneidev@gmail.com> | 2018-11-28 01:21:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-28 01:21:17 +0100 |
commit | 881f5ad70f8500035d6e22000d010b58bfbe93b7 (patch) | |
tree | 94984ecf8cfe2819ba262431a4ac0a0cb27f1d96 /src/video_core/textures/decoders.h | |
parent | Merge pull request #1814 from lioncash/ptr (diff) | |
parent | Implemented Tile Width Spacing (diff) | |
download | yuzu-881f5ad70f8500035d6e22000d010b58bfbe93b7.tar yuzu-881f5ad70f8500035d6e22000d010b58bfbe93b7.tar.gz yuzu-881f5ad70f8500035d6e22000d010b58bfbe93b7.tar.bz2 yuzu-881f5ad70f8500035d6e22000d010b58bfbe93b7.tar.lz yuzu-881f5ad70f8500035d6e22000d010b58bfbe93b7.tar.xz yuzu-881f5ad70f8500035d6e22000d010b58bfbe93b7.tar.zst yuzu-881f5ad70f8500035d6e22000d010b58bfbe93b7.zip |
Diffstat (limited to 'src/video_core/textures/decoders.h')
-rw-r--r-- | src/video_core/textures/decoders.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/textures/decoders.h b/src/video_core/textures/decoders.h index f4ef7c73e..85b7e9f7b 100644 --- a/src/video_core/textures/decoders.h +++ b/src/video_core/textures/decoders.h @@ -22,19 +22,20 @@ inline std::size_t GetGOBSize() { void UnswizzleTexture(u8* unswizzled_data, VAddr address, u32 tile_size_x, u32 tile_size_y, u32 bytes_per_pixel, u32 width, u32 height, u32 depth, u32 block_height = TICEntry::DefaultBlockHeight, - u32 block_depth = TICEntry::DefaultBlockHeight); + u32 block_depth = TICEntry::DefaultBlockHeight, u32 width_spacing = 0); /** * Unswizzles a swizzled texture without changing its format. */ std::vector<u8> UnswizzleTexture(VAddr address, u32 tile_size_x, u32 tile_size_y, u32 bytes_per_pixel, u32 width, u32 height, u32 depth, u32 block_height = TICEntry::DefaultBlockHeight, - u32 block_depth = TICEntry::DefaultBlockHeight); + u32 block_depth = TICEntry::DefaultBlockHeight, + u32 width_spacing = 0); /// Copies texture data from a buffer and performs swizzling/unswizzling as necessary. void CopySwizzledData(u32 width, u32 height, u32 depth, u32 bytes_per_pixel, u32 out_bytes_per_pixel, u8* swizzled_data, u8* unswizzled_data, - bool unswizzle, u32 block_height, u32 block_depth); + bool unswizzle, u32 block_height, u32 block_depth, u32 width_spacing); /** * Decodes an unswizzled texture into a A8R8G8B8 texture. |