summaryrefslogtreecommitdiffstats
path: root/src/video_core/surface.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-06-30 09:13:46 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-07-13 06:01:09 +0200
commite849d680480e07e430793fd9657a08b676655803 (patch)
tree640b2cfed02f0e67750ff4ec4c8fc15e909a099f /src/video_core/surface.h
parentvideo_core: Implement R8_SINT render target (diff)
downloadyuzu-e849d680480e07e430793fd9657a08b676655803.tar
yuzu-e849d680480e07e430793fd9657a08b676655803.tar.gz
yuzu-e849d680480e07e430793fd9657a08b676655803.tar.bz2
yuzu-e849d680480e07e430793fd9657a08b676655803.tar.lz
yuzu-e849d680480e07e430793fd9657a08b676655803.tar.xz
yuzu-e849d680480e07e430793fd9657a08b676655803.tar.zst
yuzu-e849d680480e07e430793fd9657a08b676655803.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/surface.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/surface.h b/src/video_core/surface.h
index a6cac3bf9..6999d9dc3 100644
--- a/src/video_core/surface.h
+++ b/src/video_core/surface.h
@@ -59,6 +59,7 @@ enum class PixelFormat {
RGBA8_SRGB,
RG8U,
RG8S,
+ RG8I,
RG8UI,
RG32UI,
RGBX16F,
@@ -176,6 +177,7 @@ constexpr std::array<u32, MaxPixelFormat> compression_factor_shift_table = {{
0, // RGBA8_SRGB
0, // RG8U
0, // RG8S
+ 0, // RG8I
0, // RG8UI
0, // RG32UI
0, // RGBX16F
@@ -277,6 +279,7 @@ constexpr std::array<u32, MaxPixelFormat> block_width_table = {{
1, // RGBA8_SRGB
1, // RG8U
1, // RG8S
+ 1, // RG8I
1, // RG8UI
1, // RG32UI
1, // RGBX16F
@@ -370,6 +373,7 @@ constexpr std::array<u32, MaxPixelFormat> block_height_table = {{
1, // RGBA8_SRGB
1, // RG8U
1, // RG8S
+ 1, // RG8I
1, // RG8UI
1, // RG32UI
1, // RGBX16F
@@ -463,6 +467,7 @@ constexpr std::array<u32, MaxPixelFormat> bpp_table = {{
32, // RGBA8_SRGB
16, // RG8U
16, // RG8S
+ 16, // RG8I
16, // RG8UI
64, // RG32UI
64, // RGBX16F