diff options
| author | 2018-03-22 15:17:10 -0500 | |
|---|---|---|
| committer | 2018-03-24 11:30:56 -0500 | |
| commit | 1b8d798835c2d39c2867f53d8dcacdc7d0ba0d15 (patch) | |
| tree | dc74d1d4ef4ce25613f2b399ad286911d871457e /src/video_core/textures/texture.h | |
| parent | GPU: Preliminary work for texture decoding. (diff) | |
| download | yuzu-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.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 { | |||
| 13 | namespace Texture { | 13 | namespace Texture { |
| 14 | 14 | ||
| 15 | enum class TextureFormat : u32 { | 15 | enum class TextureFormat : u32 { |
| 16 | A8R8G8B8 = 8, | ||
| 16 | DXT1 = 0x24, | 17 | DXT1 = 0x24, |
| 17 | }; | 18 | }; |
| 18 | 19 | ||
| @@ -53,5 +54,8 @@ struct TICEntry { | |||
| 53 | }; | 54 | }; |
| 54 | static_assert(sizeof(TICEntry) == 0x20, "TICEntry has wrong size"); | 55 | static_assert(sizeof(TICEntry) == 0x20, "TICEntry has wrong size"); |
| 55 | 56 | ||
| 57 | /// Returns the number of bytes per pixel of the input texture format. | ||
| 58 | u32 BytesPerPixel(TextureFormat format); | ||
| 59 | |||
| 56 | } // namespace Texture | 60 | } // namespace Texture |
| 57 | } // namespace Tegra | 61 | } // namespace Tegra |