summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2018-08-13 14:55:16 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2018-08-13 14:55:16 +0200
commit45cc022ea9ce4547f31c4139f9594918b5dc807b (patch)
tree1da014c6449861198a2d825ad67ab289279bf4a5 /src/video_core/gpu.cpp
parentMerge pull request #1032 from lioncash/sanitize (diff)
downloadyuzu-45cc022ea9ce4547f31c4139f9594918b5dc807b.tar
yuzu-45cc022ea9ce4547f31c4139f9594918b5dc807b.tar.gz
yuzu-45cc022ea9ce4547f31c4139f9594918b5dc807b.tar.bz2
yuzu-45cc022ea9ce4547f31c4139f9594918b5dc807b.tar.lz
yuzu-45cc022ea9ce4547f31c4139f9594918b5dc807b.tar.xz
yuzu-45cc022ea9ce4547f31c4139f9594918b5dc807b.tar.zst
yuzu-45cc022ea9ce4547f31c4139f9594918b5dc807b.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/gpu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index 6f0343888..c9f6b82b7 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -49,6 +49,7 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
case RenderTargetFormat::RGBA16_UINT:
case RenderTargetFormat::RGBA16_FLOAT:
case RenderTargetFormat::RG32_FLOAT:
+ case RenderTargetFormat::RG32_UINT:
return 8;
case RenderTargetFormat::RGBA8_UNORM:
case RenderTargetFormat::RGBA8_SNORM:
@@ -62,6 +63,7 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
case RenderTargetFormat::RG16_FLOAT:
case RenderTargetFormat::R32_FLOAT:
case RenderTargetFormat::R11G11B10_FLOAT:
+ case RenderTargetFormat::R32_UINT:
return 4;
case RenderTargetFormat::R16_UNORM:
case RenderTargetFormat::R16_SNORM: