diff options
| author | Frederic L <frederic.laing.development@gmail.com> | 2018-11-19 04:53:03 +0100 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2018-11-18 19:53:03 -0800 |
| commit | 11a1442229e097ddeb092afd4f0bf444c5042b10 (patch) | |
| tree | f65d63b6f02fa637279f320aba69b2eaee087b89 /src/video_core/textures/decoders.h | |
| parent | 3e93c306307f2318184c276fa6a956e35ac27f21 (diff) | |
Eliminated unnessessary memory allocation and copy (#1702)
Diffstat (limited to 'src/video_core/textures/decoders.h')
| -rw-r--r-- | src/video_core/textures/decoders.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.h b/src/video_core/textures/decoders.h index ba065510b..f4ef7c73e 100644 --- a/src/video_core/textures/decoders.h +++ b/src/video_core/textures/decoders.h @@ -19,6 +19,13 @@ inline std::size_t GetGOBSize() { /** * Unswizzles a swizzled texture without changing its format. */ +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); +/** + * 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, |
