mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 06:57:58 -05:00
GPU: Added a method to unswizzle a texture without decoding it.
Allow unswizzling of DXT1 textures.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user