summaryrefslogtreecommitdiffstats
path: root/src/video_core/surface.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-06-30 09:23:03 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-07-13 06:01:09 +0200
commit50c6030a8dc19454f558ba38562aed44b8c294f2 (patch)
tree9b36c6358ff0fe662f0f5b08125a2c2b28ebcbd4 /src/video_core/surface.h
parentvideo_core: Implement RG8_SINT render target and fix RG8_UINT (diff)
downloadyuzu-50c6030a8dc19454f558ba38562aed44b8c294f2.tar
yuzu-50c6030a8dc19454f558ba38562aed44b8c294f2.tar.gz
yuzu-50c6030a8dc19454f558ba38562aed44b8c294f2.tar.bz2
yuzu-50c6030a8dc19454f558ba38562aed44b8c294f2.tar.lz
yuzu-50c6030a8dc19454f558ba38562aed44b8c294f2.tar.xz
yuzu-50c6030a8dc19454f558ba38562aed44b8c294f2.tar.zst
yuzu-50c6030a8dc19454f558ba38562aed44b8c294f2.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 6999d9dc3..3e9dd797a 100644
--- a/src/video_core/surface.h
+++ b/src/video_core/surface.h
@@ -44,6 +44,7 @@ enum class PixelFormat {
BGRA8,
RGBA32F,
RG32F,
+ RG32I,
R32F,
R16F,
R16U,
@@ -162,6 +163,7 @@ constexpr std::array<u32, MaxPixelFormat> compression_factor_shift_table = {{
0, // BGRA8
0, // RGBA32F
0, // RG32F
+ 0, // RG32I
0, // R32F
0, // R16F
0, // R16U
@@ -264,6 +266,7 @@ constexpr std::array<u32, MaxPixelFormat> block_width_table = {{
1, // BGRA8
1, // RGBA32F
1, // RG32F
+ 1, // RG32I
1, // R32F
1, // R16F
1, // R16U
@@ -358,6 +361,7 @@ constexpr std::array<u32, MaxPixelFormat> block_height_table = {{
1, // BGRA8
1, // RGBA32F
1, // RG32F
+ 1, // RG32I
1, // R32F
1, // R16F
1, // R16U
@@ -452,6 +456,7 @@ constexpr std::array<u32, MaxPixelFormat> bpp_table = {{
32, // BGRA8
128, // RGBA32F
64, // RG32F
+ 64, // RG32I
32, // R32F
16, // R16F
16, // R16U