diff options
| author | 2019-10-17 19:24:11 -0300 | |
|---|---|---|
| committer | 2019-10-17 19:24:11 -0300 | |
| commit | 219fdcb9d967af3bef6aafa1dc351b824725bbe0 (patch) | |
| tree | 231e7949840d075a0aeb156b7bdcb119037b8ad2 /src/video_core/morton.cpp | |
| parent | Merge pull request #2979 from lioncash/macro (diff) | |
| parent | Surfaces: Implement R4G4B4A4U format. (diff) | |
| download | yuzu-219fdcb9d967af3bef6aafa1dc351b824725bbe0.tar.gz yuzu-219fdcb9d967af3bef6aafa1dc351b824725bbe0.tar.xz yuzu-219fdcb9d967af3bef6aafa1dc351b824725bbe0.zip | |
Merge pull request #2966 from FernandoS27/astc-formats
Implement a series of ASTC formats and R4G4B4A4 format
Diffstat (limited to 'src/video_core/morton.cpp')
| -rw-r--r-- | src/video_core/morton.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/video_core/morton.cpp b/src/video_core/morton.cpp index ab71870ab..fe5f08ace 100644 --- a/src/video_core/morton.cpp +++ b/src/video_core/morton.cpp | |||
| @@ -93,6 +93,7 @@ static constexpr ConversionArray morton_to_linear_fns = { | |||
| 93 | MortonCopy<true, PixelFormat::DXT23_SRGB>, | 93 | MortonCopy<true, PixelFormat::DXT23_SRGB>, |
| 94 | MortonCopy<true, PixelFormat::DXT45_SRGB>, | 94 | MortonCopy<true, PixelFormat::DXT45_SRGB>, |
| 95 | MortonCopy<true, PixelFormat::BC7U_SRGB>, | 95 | MortonCopy<true, PixelFormat::BC7U_SRGB>, |
| 96 | MortonCopy<true, PixelFormat::R4G4B4A4U>, | ||
| 96 | MortonCopy<true, PixelFormat::ASTC_2D_4X4_SRGB>, | 97 | MortonCopy<true, PixelFormat::ASTC_2D_4X4_SRGB>, |
| 97 | MortonCopy<true, PixelFormat::ASTC_2D_8X8_SRGB>, | 98 | MortonCopy<true, PixelFormat::ASTC_2D_8X8_SRGB>, |
| 98 | MortonCopy<true, PixelFormat::ASTC_2D_8X5_SRGB>, | 99 | MortonCopy<true, PixelFormat::ASTC_2D_8X5_SRGB>, |
| @@ -101,6 +102,16 @@ static constexpr ConversionArray morton_to_linear_fns = { | |||
| 101 | MortonCopy<true, PixelFormat::ASTC_2D_5X5_SRGB>, | 102 | MortonCopy<true, PixelFormat::ASTC_2D_5X5_SRGB>, |
| 102 | MortonCopy<true, PixelFormat::ASTC_2D_10X8>, | 103 | MortonCopy<true, PixelFormat::ASTC_2D_10X8>, |
| 103 | MortonCopy<true, PixelFormat::ASTC_2D_10X8_SRGB>, | 104 | MortonCopy<true, PixelFormat::ASTC_2D_10X8_SRGB>, |
| 105 | MortonCopy<true, PixelFormat::ASTC_2D_6X6>, | ||
| 106 | MortonCopy<true, PixelFormat::ASTC_2D_6X6_SRGB>, | ||
| 107 | MortonCopy<true, PixelFormat::ASTC_2D_10X10>, | ||
| 108 | MortonCopy<true, PixelFormat::ASTC_2D_10X10_SRGB>, | ||
| 109 | MortonCopy<true, PixelFormat::ASTC_2D_12X12>, | ||
| 110 | MortonCopy<true, PixelFormat::ASTC_2D_12X12_SRGB>, | ||
| 111 | MortonCopy<true, PixelFormat::ASTC_2D_8X6>, | ||
| 112 | MortonCopy<true, PixelFormat::ASTC_2D_8X6_SRGB>, | ||
| 113 | MortonCopy<true, PixelFormat::ASTC_2D_6X5>, | ||
| 114 | MortonCopy<true, PixelFormat::ASTC_2D_6X5_SRGB>, | ||
| 104 | MortonCopy<true, PixelFormat::Z32F>, | 115 | MortonCopy<true, PixelFormat::Z32F>, |
| 105 | MortonCopy<true, PixelFormat::Z16>, | 116 | MortonCopy<true, PixelFormat::Z16>, |
| 106 | MortonCopy<true, PixelFormat::Z24S8>, | 117 | MortonCopy<true, PixelFormat::Z24S8>, |
| @@ -162,6 +173,17 @@ static constexpr ConversionArray linear_to_morton_fns = { | |||
| 162 | MortonCopy<false, PixelFormat::DXT23_SRGB>, | 173 | MortonCopy<false, PixelFormat::DXT23_SRGB>, |
| 163 | MortonCopy<false, PixelFormat::DXT45_SRGB>, | 174 | MortonCopy<false, PixelFormat::DXT45_SRGB>, |
| 164 | MortonCopy<false, PixelFormat::BC7U_SRGB>, | 175 | MortonCopy<false, PixelFormat::BC7U_SRGB>, |
| 176 | MortonCopy<false, PixelFormat::R4G4B4A4U>, | ||
| 177 | nullptr, | ||
| 178 | nullptr, | ||
| 179 | nullptr, | ||
| 180 | nullptr, | ||
| 181 | nullptr, | ||
| 182 | nullptr, | ||
| 183 | nullptr, | ||
| 184 | nullptr, | ||
| 185 | nullptr, | ||
| 186 | nullptr, | ||
| 165 | nullptr, | 187 | nullptr, |
| 166 | nullptr, | 188 | nullptr, |
| 167 | nullptr, | 189 | nullptr, |