Eliminated unnessessary memory allocation and copy (#1702)

This commit is contained in:
Frederic L 2018-11-19 04:53:03 +01:00 committed by bunnei
parent 3e93c30630
commit 11a1442229
3 changed files with 20 additions and 9 deletions

View file

@ -16,6 +16,13 @@ inline std::size_t GetGOBSize() {
return 512;
}
/**
* 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.
*/