mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-14 06:27:47 +00:00
Eliminated unnessessary memory allocation and copy (#1702)
This commit is contained in:
parent
ae160715f9
commit
d2dd9cfc1d
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