textures: Refactor out for Texture/Depth FormatFromPixelFormat.

This commit is contained in:
bunnei 2018-08-09 20:17:48 -04:00
parent 6828c25498
commit 3a67876252
5 changed files with 31 additions and 181 deletions

View file

@ -13,8 +13,8 @@ namespace Tegra::Texture {
/**
* Unswizzles a swizzled texture without changing its format.
*/
std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width, u32 height,
u32 block_height = TICEntry::DefaultBlockHeight);
std::vector<u8> UnswizzleTexture(VAddr address, u32 tile_size, u32 bytes_per_pixel, u32 width,
u32 height, u32 block_height = TICEntry::DefaultBlockHeight);
/**
* Unswizzles a swizzled depth texture without changing its format.