summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-12 01:55:41 +0200
committerGitHub <noreply@github.com>2018-08-12 01:55:41 +0200
commitc51935450652fbd62e96dfc8031c6388c7774e31 (patch)
tree97740e48dcf9fd846d376f5eae6bb663ccaad6e0 /src/video_core/gpu.cpp
parentMerge pull request #970 from DarkLordZach/loader-errors (diff)
parentgl_rasterizer: Implement render target format RG8_SNORM. (diff)
downloadyuzu-c51935450652fbd62e96dfc8031c6388c7774e31.tar
yuzu-c51935450652fbd62e96dfc8031c6388c7774e31.tar.gz
yuzu-c51935450652fbd62e96dfc8031c6388c7774e31.tar.bz2
yuzu-c51935450652fbd62e96dfc8031c6388c7774e31.tar.lz
yuzu-c51935450652fbd62e96dfc8031c6388c7774e31.tar.xz
yuzu-c51935450652fbd62e96dfc8031c6388c7774e31.tar.zst
yuzu-c51935450652fbd62e96dfc8031c6388c7774e31.zip
Diffstat (limited to 'src/video_core/gpu.cpp')
-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 ceaf86654..834940b83 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -50,6 +50,7 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
case RenderTargetFormat::RG32_FLOAT:
return 8;
case RenderTargetFormat::RGBA8_UNORM:
+ case RenderTargetFormat::RGBA8_SNORM:
case RenderTargetFormat::RGBA8_SRGB:
case RenderTargetFormat::RGB10_A2_UNORM:
case RenderTargetFormat::BGRA8_UNORM:
@@ -66,6 +67,7 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
case RenderTargetFormat::R16_UINT:
case RenderTargetFormat::R16_SINT:
case RenderTargetFormat::R16_FLOAT:
+ case RenderTargetFormat::RG8_SNORM:
return 2;
case RenderTargetFormat::R8_UNORM:
return 1;