diff options
author | Subv <subv2112@gmail.com> | 2018-03-22 21:17:10 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-03-24 17:30:56 +0100 |
commit | 1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15 (patch) | |
tree | dc74d1d4ef4ce25613f2b399ad286911d871457e /src/video_core/textures/texture.h | |
parent | GPU: Preliminary work for texture decoding. (diff) | |
download | yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.tar yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.tar.gz yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.tar.bz2 yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.tar.lz yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.tar.xz yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.tar.zst yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/textures/texture.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h index 3306d2ab2..d969bcdd9 100644 --- a/src/video_core/textures/texture.h +++ b/src/video_core/textures/texture.h @@ -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 |