summaryrefslogtreecommitdiff
path: root/src/video_core/textures/texture.h
diff options
context:
space:
mode:
authorGravatar Subv2018-03-22 15:17:10 -0500
committerGravatar Subv2018-03-24 11:30:56 -0500
commit1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15 (patch)
treedc74d1d4ef4ce25613f2b399ad286911d871457e /src/video_core/textures/texture.h
parentGPU: Preliminary work for texture decoding. (diff)
downloadyuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.tar.gz
yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.tar.xz
yuzu-1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15.zip
GPU: Added a method to unswizzle a texture without decoding it.
Allow unswizzling of DXT1 textures.
Diffstat (limited to 'src/video_core/textures/texture.h')
-rw-r--r--src/video_core/textures/texture.h4
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 {
13namespace Texture { 13namespace Texture {
14 14
15enum class TextureFormat : u32 { 15enum class TextureFormat : u32 {
16 A8R8G8B8 = 8,
16 DXT1 = 0x24, 17 DXT1 = 0x24,
17}; 18};
18 19
@@ -53,5 +54,8 @@ struct TICEntry {
53}; 54};
54static_assert(sizeof(TICEntry) == 0x20, "TICEntry has wrong size"); 55static_assert(sizeof(TICEntry) == 0x20, "TICEntry has wrong size");
55 56
57/// Returns the number of bytes per pixel of the input texture format.
58u32 BytesPerPixel(TextureFormat format);
59
56} // namespace Texture 60} // namespace Texture
57} // namespace Tegra 61} // namespace Tegra