summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorGravatar Subv2018-06-05 22:01:20 -0500
committerGravatar Subv2018-06-05 22:01:20 -0500
commitadf47cd59a08a87fc922411826118020eed92c98 (patch)
tree1cb2d1f106d2045528788c76fb0681e2264649f5 /src/video_core/gpu.cpp
parentGPU: Allow the usage of RGBA32_FLOAT in the texture copy engine. (diff)
downloadyuzu-adf47cd59a08a87fc922411826118020eed92c98.tar.gz
yuzu-adf47cd59a08a87fc922411826118020eed92c98.tar.xz
yuzu-adf47cd59a08a87fc922411826118020eed92c98.zip
GPU: Allow the usage of RGBA16_FLOAT in the texture copy engine.
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 1c9a523fc..66351fe6e 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -28,6 +28,8 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
28 switch (format) { 28 switch (format) {
29 case RenderTargetFormat::RGBA32_FLOAT: 29 case RenderTargetFormat::RGBA32_FLOAT:
30 return 16; 30 return 16;
31 case RenderTargetFormat::RGBA16_FLOAT:
32 return 8;
31 case RenderTargetFormat::RGBA8_UNORM: 33 case RenderTargetFormat::RGBA8_UNORM:
32 case RenderTargetFormat::RGB10_A2_UNORM: 34 case RenderTargetFormat::RGB10_A2_UNORM:
33 return 4; 35 return 4;