diff options
| author | 2022-06-30 22:04:23 -0400 | |
|---|---|---|
| committer | 2022-07-05 20:33:43 -0400 | |
| commit | aec129c1ab333292c37e28bd6b76670e9d0a1acf (patch) | |
| tree | a2a537d2f04c4a7d6924064b93ad348d398f67a5 /src/video_core/texture_cache | |
| parent | Merge pull request #8486 from liushuyu/github-actions-verify (diff) | |
| download | yuzu-aec129c1ab333292c37e28bd6b76670e9d0a1acf.tar.gz yuzu-aec129c1ab333292c37e28bd6b76670e9d0a1acf.tar.xz yuzu-aec129c1ab333292c37e28bd6b76670e9d0a1acf.zip | |
renderer_(gl/vk): Implement ASTC_10x6_UNORM
- Used by Monster Hunter Rise Update 10.0.2
Diffstat (limited to 'src/video_core/texture_cache')
| -rw-r--r-- | src/video_core/texture_cache/format_lookup_table.cpp | 2 | ||||
| -rw-r--r-- | src/video_core/texture_cache/formatter.h | 2 |
2 files changed, 4 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 0937768d6..1412aa076 100644 --- a/src/video_core/texture_cache/format_lookup_table.cpp +++ b/src/video_core/texture_cache/format_lookup_table.cpp | |||
| @@ -206,6 +206,8 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red, | |||
| 206 | return PixelFormat::ASTC_2D_6X6_UNORM; | 206 | return PixelFormat::ASTC_2D_6X6_UNORM; |
| 207 | case Hash(TextureFormat::ASTC_2D_6X6, UNORM, SRGB): | 207 | case Hash(TextureFormat::ASTC_2D_6X6, UNORM, SRGB): |
| 208 | return PixelFormat::ASTC_2D_6X6_SRGB; | 208 | return PixelFormat::ASTC_2D_6X6_SRGB; |
| 209 | case Hash(TextureFormat::ASTC_2D_10X6, UNORM, LINEAR): | ||
| 210 | return PixelFormat::ASTC_2D_10X6_UNORM; | ||
| 209 | case Hash(TextureFormat::ASTC_2D_10X10, UNORM, LINEAR): | 211 | case Hash(TextureFormat::ASTC_2D_10X10, UNORM, LINEAR): |
| 210 | return PixelFormat::ASTC_2D_10X10_UNORM; | 212 | return PixelFormat::ASTC_2D_10X10_UNORM; |
| 211 | case Hash(TextureFormat::ASTC_2D_10X10, UNORM, SRGB): | 213 | 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 1b78ed445..95a572604 100644 --- a/src/video_core/texture_cache/formatter.h +++ b/src/video_core/texture_cache/formatter.h | |||
| @@ -175,6 +175,8 @@ struct fmt::formatter<VideoCore::Surface::PixelFormat> : fmt::formatter<fmt::str | |||
| 175 | return "ASTC_2D_6X6_UNORM"; | 175 | return "ASTC_2D_6X6_UNORM"; |
| 176 | case PixelFormat::ASTC_2D_6X6_SRGB: | 176 | case PixelFormat::ASTC_2D_6X6_SRGB: |
| 177 | return "ASTC_2D_6X6_SRGB"; | 177 | return "ASTC_2D_6X6_SRGB"; |
| 178 | case PixelFormat::ASTC_2D_10X6_UNORM: | ||
| 179 | return "ASTC_2D_10X6_UNORM"; | ||
| 178 | case PixelFormat::ASTC_2D_10X10_UNORM: | 180 | case PixelFormat::ASTC_2D_10X10_UNORM: |
| 179 | return "ASTC_2D_10X10_UNORM"; | 181 | return "ASTC_2D_10X10_UNORM"; |
| 180 | case PixelFormat::ASTC_2D_10X10_SRGB: | 182 | case PixelFormat::ASTC_2D_10X10_SRGB: |