summaryrefslogtreecommitdiff
path: root/src/video_core/surface.h
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2020-06-30 03:51:42 -0300
committerGravatar ReinUsesLisp2020-07-13 01:01:08 -0300
commitfd33e996e0d6d441917446f7a9ec854b0a79a909 (patch)
treefcc3d6086372cb7b04f2ed494ea60ce30298dfc2 /src/video_core/surface.h
parentvideo_core/surface: Remove explicit values on PixelFormat's definition (diff)
downloadyuzu-fd33e996e0d6d441917446f7a9ec854b0a79a909.tar.gz
yuzu-fd33e996e0d6d441917446f7a9ec854b0a79a909.tar.xz
yuzu-fd33e996e0d6d441917446f7a9ec854b0a79a909.zip
video_core: Implement R8_SNORM render target
Diffstat (limited to 'src/video_core/surface.h')
-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 422c9fcb2..def206740 100644
--- a/src/video_core/surface.h
+++ b/src/video_core/surface.h
@@ -22,6 +22,7 @@ enum class PixelFormat {
22 A2B10G10R10U, 22 A2B10G10R10U,
23 A1B5G5R5U, 23 A1B5G5R5U,
24 R8U, 24 R8U,
25 R8S,
25 R8UI, 26 R8UI,
26 RGBA16F, 27 RGBA16F,
27 RGBA16U, 28 RGBA16U,
@@ -137,6 +138,7 @@ constexpr std::array<u32, MaxPixelFormat> compression_factor_shift_table = {{
137 0, // A2B10G10R10U 138 0, // A2B10G10R10U
138 0, // A1B5G5R5U 139 0, // A1B5G5R5U
139 0, // R8U 140 0, // R8U
141 0, // R8S
140 0, // R8UI 142 0, // R8UI
141 0, // RGBA16F 143 0, // RGBA16F
142 0, // RGBA16U 144 0, // RGBA16U
@@ -236,6 +238,7 @@ constexpr std::array<u32, MaxPixelFormat> block_width_table = {{
236 1, // A2B10G10R10U 238 1, // A2B10G10R10U
237 1, // A1B5G5R5U 239 1, // A1B5G5R5U
238 1, // R8U 240 1, // R8U
241 1, // R8S
239 1, // R8UI 242 1, // R8UI
240 1, // RGBA16F 243 1, // RGBA16F
241 1, // RGBA16U 244 1, // RGBA16U
@@ -327,6 +330,7 @@ constexpr std::array<u32, MaxPixelFormat> block_height_table = {{
327 1, // A2B10G10R10U 330 1, // A2B10G10R10U
328 1, // A1B5G5R5U 331 1, // A1B5G5R5U
329 1, // R8U 332 1, // R8U
333 1, // R8S
330 1, // R8UI 334 1, // R8UI
331 1, // RGBA16F 335 1, // RGBA16F
332 1, // RGBA16U 336 1, // RGBA16U
@@ -418,6 +422,7 @@ constexpr std::array<u32, MaxPixelFormat> bpp_table = {{
418 32, // A2B10G10R10U 422 32, // A2B10G10R10U
419 16, // A1B5G5R5U 423 16, // A1B5G5R5U
420 8, // R8U 424 8, // R8U
425 8, // R8S
421 8, // R8UI 426 8, // R8UI
422 64, // RGBA16F 427 64, // RGBA16F
423 64, // RGBA16U 428 64, // RGBA16U