diff options
| author | 2022-10-06 16:45:40 +0200 | |
|---|---|---|
| committer | 2022-10-06 16:45:40 +0200 | |
| commit | 1a49991676fa3311cb2efdfd4f250a0f63063d5f (patch) | |
| tree | fc4638c6128890246ab6dc65215c0df025a873ee /src/video_core/texture_cache | |
| parent | Merge pull request #9013 from liamwhite/spinning-a-yarn (diff) | |
| download | yuzu-1a49991676fa3311cb2efdfd4f250a0f63063d5f.tar.gz yuzu-1a49991676fa3311cb2efdfd4f250a0f63063d5f.tar.xz yuzu-1a49991676fa3311cb2efdfd4f250a0f63063d5f.zip | |
Texture Cache: Add ASTC 10x5 Format.
Diffstat (limited to 'src/video_core/texture_cache')
| -rw-r--r-- | src/video_core/texture_cache/format_lookup_table.cpp | 4 | ||||
| -rw-r--r-- | src/video_core/texture_cache/formatter.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/format_lookup_table.cpp b/src/video_core/texture_cache/format_lookup_table.cpp index 1412aa076..c71694d2a 100644 --- a/src/video_core/texture_cache/format_lookup_table.cpp +++ b/src/video_core/texture_cache/format_lookup_table.cpp | |||
| @@ -208,6 +208,10 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red, | |||
| 208 | return PixelFormat::ASTC_2D_6X6_SRGB; | 208 | return PixelFormat::ASTC_2D_6X6_SRGB; |
| 209 | case Hash(TextureFormat::ASTC_2D_10X6, UNORM, LINEAR): | 209 | case Hash(TextureFormat::ASTC_2D_10X6, UNORM, LINEAR): |
| 210 | return PixelFormat::ASTC_2D_10X6_UNORM; | 210 | return PixelFormat::ASTC_2D_10X6_UNORM; |
| 211 | case Hash(TextureFormat::ASTC_2D_10X5, UNORM, LINEAR): | ||
| 212 | return PixelFormat::ASTC_2D_10X5_UNORM; | ||
| 213 | case Hash(TextureFormat::ASTC_2D_10X5, UNORM, SRGB): | ||
| 214 | return PixelFormat::ASTC_2D_10X5_SRGB; | ||
| 211 | case Hash(TextureFormat::ASTC_2D_10X10, UNORM, LINEAR): | 215 | case Hash(TextureFormat::ASTC_2D_10X10, UNORM, LINEAR): |
| 212 | return PixelFormat::ASTC_2D_10X10_UNORM; | 216 | return PixelFormat::ASTC_2D_10X10_UNORM; |
| 213 | case Hash(TextureFormat::ASTC_2D_10X10, UNORM, SRGB): | 217 | case Hash(TextureFormat::ASTC_2D_10X10, UNORM, SRGB): |
diff --git a/src/video_core/texture_cache/formatter.h b/src/video_core/texture_cache/formatter.h index 95a572604..6881e4c90 100644 --- a/src/video_core/texture_cache/formatter.h +++ b/src/video_core/texture_cache/formatter.h | |||
| @@ -177,6 +177,10 @@ struct fmt::formatter<VideoCore::Surface::PixelFormat> : fmt::formatter<fmt::str | |||
| 177 | return "ASTC_2D_6X6_SRGB"; | 177 | return "ASTC_2D_6X6_SRGB"; |
| 178 | case PixelFormat::ASTC_2D_10X6_UNORM: | 178 | case PixelFormat::ASTC_2D_10X6_UNORM: |
| 179 | return "ASTC_2D_10X6_UNORM"; | 179 | return "ASTC_2D_10X6_UNORM"; |
| 180 | case PixelFormat::ASTC_2D_10X5_UNORM: | ||
| 181 | return "ASTC_2D_10X5_UNORM"; | ||
| 182 | case PixelFormat::ASTC_2D_10X5_SRGB: | ||
| 183 | return "ASTC_2D_10X5_SRGB"; | ||
| 180 | case PixelFormat::ASTC_2D_10X10_UNORM: | 184 | case PixelFormat::ASTC_2D_10X10_UNORM: |
| 181 | return "ASTC_2D_10X10_UNORM"; | 185 | return "ASTC_2D_10X10_UNORM"; |
| 182 | case PixelFormat::ASTC_2D_10X10_SRGB: | 186 | case PixelFormat::ASTC_2D_10X10_SRGB: |