summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r--src/video_core/gpu.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index 756518ee7..66351fe6e 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -26,6 +26,10 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
26 ASSERT(format != RenderTargetFormat::NONE); 26 ASSERT(format != RenderTargetFormat::NONE);
27 27
28 switch (format) { 28 switch (format) {
29 case RenderTargetFormat::RGBA32_FLOAT:
30 return 16;
31 case RenderTargetFormat::RGBA16_FLOAT:
32 return 8;
29 case RenderTargetFormat::RGBA8_UNORM: 33 case RenderTargetFormat::RGBA8_UNORM:
30 case RenderTargetFormat::RGB10_A2_UNORM: 34 case RenderTargetFormat::RGB10_A2_UNORM:
31 return 4; 35 return 4;