Eliminated unnessessary memory allocation and copy (#1702)
This commit is contained in:
parent
3e93c30630
commit
11a1442229
3 changed files with 20 additions and 9 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue