diff options
author | bunnei <bunneidev@gmail.com> | 2018-06-06 00:24:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-06 00:24:13 -0400 |
commit | 9a85277d83bfd5a24052b2809c52458e7351e18a (patch) | |
tree | 9ed1cc96f8886b4fbd422762d2201519bc44f261 /src/video_core/gpu.cpp | |
parent | 05dc93399baa6e99373f0bc5169a5fdce3da98f9 (diff) | |
parent | adf47cd59a08a87fc922411826118020eed92c98 (diff) |
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.cpp | 4 |
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) { ASSERT(format != RenderTargetFormat::NONE); switch (format) { + case RenderTargetFormat::RGBA32_FLOAT: + return 16; + case RenderTargetFormat::RGBA16_FLOAT: + return 8; case RenderTargetFormat::RGBA8_UNORM: case RenderTargetFormat::RGB10_A2_UNORM: return 4; |