diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-10-06 01:58:30 +0200 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-10-06 01:58:30 +0200 |
commit | ad1a9f3d3af3ffb49a81e0c9d27301b824d9f7dd (patch) | |
tree | a17657370a25a30ced37cd016356c2b0d3102be3 /src/video_core/surface.h | |
parent | Merge pull request #11657 from liamwhite/new-codespell (diff) | |
download | yuzu-ad1a9f3d3af3ffb49a81e0c9d27301b824d9f7dd.tar yuzu-ad1a9f3d3af3ffb49a81e0c9d27301b824d9f7dd.tar.gz yuzu-ad1a9f3d3af3ffb49a81e0c9d27301b824d9f7dd.tar.bz2 yuzu-ad1a9f3d3af3ffb49a81e0c9d27301b824d9f7dd.tar.lz yuzu-ad1a9f3d3af3ffb49a81e0c9d27301b824d9f7dd.tar.xz yuzu-ad1a9f3d3af3ffb49a81e0c9d27301b824d9f7dd.tar.zst yuzu-ad1a9f3d3af3ffb49a81e0c9d27301b824d9f7dd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/surface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/surface.h b/src/video_core/surface.h index 9b9c4d9bc..a5e8e2f62 100644 --- a/src/video_core/surface.h +++ b/src/video_core/surface.h @@ -115,6 +115,7 @@ enum class PixelFormat { // Depth formats D32_FLOAT = MaxColorFormat, D16_UNORM, + X8_D24_UNORM, MaxDepthFormat, @@ -251,6 +252,7 @@ constexpr std::array<u8, MaxPixelFormat> BLOCK_WIDTH_TABLE = {{ 1, // E5B9G9R9_FLOAT 1, // D32_FLOAT 1, // D16_UNORM + 1, // X8_D24_UNORM 1, // S8_UINT 1, // D24_UNORM_S8_UINT 1, // S8_UINT_D24_UNORM @@ -360,6 +362,7 @@ constexpr std::array<u8, MaxPixelFormat> BLOCK_HEIGHT_TABLE = {{ 1, // E5B9G9R9_FLOAT 1, // D32_FLOAT 1, // D16_UNORM + 1, // X8_D24_UNORM 1, // S8_UINT 1, // D24_UNORM_S8_UINT 1, // S8_UINT_D24_UNORM @@ -469,6 +472,7 @@ constexpr std::array<u8, MaxPixelFormat> BITS_PER_BLOCK_TABLE = {{ 32, // E5B9G9R9_FLOAT 32, // D32_FLOAT 16, // D16_UNORM + 32, // X8_D24_UNORM 8, // S8_UINT 32, // D24_UNORM_S8_UINT 32, // S8_UINT_D24_UNORM |