diff options
author | Fernando S <fsahmkow27@gmail.com> | 2022-04-16 00:05:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 00:05:49 +0200 |
commit | 856a841c72ba7b6c7f63a3afafd1692c1cea8744 (patch) | |
tree | 709a3c1d2f99e5c4ae7e6386c4a2d42690a71f36 /src/video_core/surface.h | |
parent | Merge pull request #8172 from bunnei/kernel-mutex (diff) | |
parent | video_core: implement formats for N64 emulation (diff) | |
download | yuzu-856a841c72ba7b6c7f63a3afafd1692c1cea8744.tar yuzu-856a841c72ba7b6c7f63a3afafd1692c1cea8744.tar.gz yuzu-856a841c72ba7b6c7f63a3afafd1692c1cea8744.tar.bz2 yuzu-856a841c72ba7b6c7f63a3afafd1692c1cea8744.tar.lz yuzu-856a841c72ba7b6c7f63a3afafd1692c1cea8744.tar.xz yuzu-856a841c72ba7b6c7f63a3afafd1692c1cea8744.tar.zst yuzu-856a841c72ba7b6c7f63a3afafd1692c1cea8744.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/surface.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/surface.h b/src/video_core/surface.h index 5704cf16a..86fea61ae 100644 --- a/src/video_core/surface.h +++ b/src/video_core/surface.h @@ -25,6 +25,7 @@ enum class PixelFormat { A2B10G10R10_UNORM, A2B10G10R10_UINT, A1B5G5R5_UNORM, + A5B5G5R1_UNORM, R8_UNORM, R8_SNORM, R8_SINT, @@ -82,6 +83,7 @@ enum class PixelFormat { BC3_SRGB, BC7_SRGB, A4B4G4R4_UNORM, + R4G4_UNORM, ASTC_2D_4X4_SRGB, ASTC_2D_8X8_SRGB, ASTC_2D_8X5_SRGB, @@ -156,6 +158,7 @@ constexpr std::array<u32, MaxPixelFormat> BLOCK_WIDTH_TABLE = {{ 1, // A2B10G10R10_UNORM 1, // A2B10G10R10_UINT 1, // A1B5G5R5_UNORM + 1, // A5B5G5R1_UNORM 1, // R8_UNORM 1, // R8_SNORM 1, // R8_SINT @@ -213,6 +216,7 @@ constexpr std::array<u32, MaxPixelFormat> BLOCK_WIDTH_TABLE = {{ 4, // BC3_SRGB 4, // BC7_SRGB 1, // A4B4G4R4_UNORM + 1, // R4G4_UNORM 4, // ASTC_2D_4X4_SRGB 8, // ASTC_2D_8X8_SRGB 8, // ASTC_2D_8X5_SRGB @@ -256,6 +260,7 @@ constexpr std::array<u32, MaxPixelFormat> BLOCK_HEIGHT_TABLE = {{ 1, // A2B10G10R10_UNORM 1, // A2B10G10R10_UINT 1, // A1B5G5R5_UNORM + 1, // A5B5G5R1_UNORM 1, // R8_UNORM 1, // R8_SNORM 1, // R8_SINT @@ -313,6 +318,7 @@ constexpr std::array<u32, MaxPixelFormat> BLOCK_HEIGHT_TABLE = {{ 4, // BC3_SRGB 4, // BC7_SRGB 1, // A4B4G4R4_UNORM + 1, // R4G4_UNORM 4, // ASTC_2D_4X4_SRGB 8, // ASTC_2D_8X8_SRGB 5, // ASTC_2D_8X5_SRGB @@ -356,6 +362,7 @@ constexpr std::array<u32, MaxPixelFormat> BITS_PER_BLOCK_TABLE = {{ 32, // A2B10G10R10_UNORM 32, // A2B10G10R10_UINT 16, // A1B5G5R5_UNORM + 16, // A5B5G5R1_UNORM 8, // R8_UNORM 8, // R8_SNORM 8, // R8_SINT @@ -413,6 +420,7 @@ constexpr std::array<u32, MaxPixelFormat> BITS_PER_BLOCK_TABLE = {{ 128, // BC3_SRGB 128, // BC7_UNORM 16, // A4B4G4R4_UNORM + 8, // R4G4_UNORM 128, // ASTC_2D_4X4_SRGB 128, // ASTC_2D_8X8_SRGB 128, // ASTC_2D_8X5_SRGB |