summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-06-06 04:07:40 +0200
committerSubv <subv2112@gmail.com>2018-06-06 04:07:40 +0200
commit8d70d1ea455f7dbf3a599a4feffd5335cc15efe4 (patch)
tree160b9008f5aab67d82c4868a8651bbeba48597d4
parentMerge pull request #518 from Subv/incomplete_shaders (diff)
downloadyuzu-8d70d1ea455f7dbf3a599a4feffd5335cc15efe4.tar
yuzu-8d70d1ea455f7dbf3a599a4feffd5335cc15efe4.tar.gz
yuzu-8d70d1ea455f7dbf3a599a4feffd5335cc15efe4.tar.bz2
yuzu-8d70d1ea455f7dbf3a599a4feffd5335cc15efe4.tar.lz
yuzu-8d70d1ea455f7dbf3a599a4feffd5335cc15efe4.tar.xz
yuzu-8d70d1ea455f7dbf3a599a4feffd5335cc15efe4.tar.zst
yuzu-8d70d1ea455f7dbf3a599a4feffd5335cc15efe4.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/gpu.cpp2
-rw-r--r--src/video_core/gpu.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index 756518ee7..1c9a523fc 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -26,6 +26,8 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
ASSERT(format != RenderTargetFormat::NONE);
switch (format) {
+ case RenderTargetFormat::RGBA32_FLOAT:
+ return 16;
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 f168a5171..9f8465444 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,