diff options
author | bunnei <bunneidev@gmail.com> | 2018-06-06 06:24:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-06 06:24:13 +0200 |
commit | 9a85277d83bfd5a24052b2809c52458e7351e18a (patch) | |
tree | 9ed1cc96f8886b4fbd422762d2201519bc44f261 /src | |
parent | Merge pull request #528 from Subv/rg11b10f (diff) | |
parent | GPU: Allow the usage of RGBA16_FLOAT in the texture copy engine. (diff) | |
download | yuzu-9a85277d83bfd5a24052b2809c52458e7351e18a.tar yuzu-9a85277d83bfd5a24052b2809c52458e7351e18a.tar.gz yuzu-9a85277d83bfd5a24052b2809c52458e7351e18a.tar.bz2 yuzu-9a85277d83bfd5a24052b2809c52458e7351e18a.tar.lz yuzu-9a85277d83bfd5a24052b2809c52458e7351e18a.tar.xz yuzu-9a85277d83bfd5a24052b2809c52458e7351e18a.tar.zst yuzu-9a85277d83bfd5a24052b2809c52458e7351e18a.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/gpu.cpp | 4 | ||||
-rw-r--r-- | src/video_core/gpu.h | 1 |
2 files changed, 5 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; diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 2762a22ec..5852b9619 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -15,6 +15,7 @@ namespace Tegra { enum class RenderTargetFormat : u32 { NONE = 0x0, + RGBA32_FLOAT = 0xC0, RGBA16_FLOAT = 0xCA, RGB10_A2_UNORM = 0xD1, RGBA8_UNORM = 0xD5, |