GPU: Added a method to unswizzle a texture without decoding it.

Allow unswizzling of DXT1 textures.
This commit is contained in:
Subv 2018-03-22 15:17:10 -05:00
parent 71ebc3e90d
commit 1b8d798835
4 changed files with 95 additions and 5 deletions

View file

@ -13,6 +13,7 @@ namespace Tegra {
namespace Texture {
enum class TextureFormat : u32 {
A8R8G8B8 = 8,
DXT1 = 0x24,
};
@ -53,5 +54,8 @@ struct TICEntry {
};
static_assert(sizeof(TICEntry) == 0x20, "TICEntry has wrong size");
/// Returns the number of bytes per pixel of the input texture format.
u32 BytesPerPixel(TextureFormat format);
} // namespace Texture
} // namespace Tegra