|
|
@ -17,6 +17,10 @@ namespace Texture {
|
|
|
|
std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width, u32 height,
|
|
|
|
std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width, u32 height,
|
|
|
|
u32 block_height = TICEntry::DefaultBlockHeight);
|
|
|
|
u32 block_height = TICEntry::DefaultBlockHeight);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Copies texture data from a buffer and performs swizzling/unswizzling as necessary.
|
|
|
|
|
|
|
|
void CopySwizzledData(u32 width, u32 height, u32 bytes_per_pixel, u32 out_bytes_per_pixel,
|
|
|
|
|
|
|
|
u8* swizzled_data, u8* unswizzled_data, bool unswizzle, u32 block_height);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Decodes an unswizzled texture into a A8R8G8B8 texture.
|
|
|
|
* Decodes an unswizzled texture into a A8R8G8B8 texture.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|