summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-06-06 00:24:13 -0400
committerGravatar GitHub2018-06-06 00:24:13 -0400
commit9a85277d83bfd5a24052b2809c52458e7351e18a (patch)
tree9ed1cc96f8886b4fbd422762d2201519bc44f261 /src/video_core/gpu.cpp
parentMerge pull request #528 from Subv/rg11b10f (diff)
parentGPU: Allow the usage of RGBA16_FLOAT in the texture copy engine. (diff)
downloadyuzu-9a85277d83bfd5a24052b2809c52458e7351e18a.tar.gz
yuzu-9a85277d83bfd5a24052b2809c52458e7351e18a.tar.xz
yuzu-9a85277d83bfd5a24052b2809c52458e7351e18a.zip
Merge pull request #527 from Subv/rgba32f_texcopy
GPU: Allow the usage of RGBA32_FLOAT and RGBA16_FLOAT in the texture copy engine.
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;