summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2020-02-25 17:19:34 -0300
committerGravatar ReinUsesLisp2020-02-25 17:19:34 -0300
commit466ce715e4bbd7c4b3889f98e282c1ca4c167e71 (patch)
tree82f45c5fc23e4ffe23be8fa6e100d82b859b4d98 /src
parentMerge pull request #3417 from ReinUsesLisp/r32i (diff)
downloadyuzu-466ce715e4bbd7c4b3889f98e282c1ca4c167e71.tar.gz
yuzu-466ce715e4bbd7c4b3889f98e282c1ca4c167e71.tar.xz
yuzu-466ce715e4bbd7c4b3889f98e282c1ca4c167e71.zip
video_core/surface: Add R32_SINT render target format
Diffstat (limited to 'src')
-rw-r--r--src/video_core/gpu.h1
-rw-r--r--src/video_core/surface.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index 07727210c..d220327f5 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -57,6 +57,7 @@ enum class RenderTargetFormat : u32 {
57 RG16_UINT = 0xDD, 57 RG16_UINT = 0xDD,
58 RG16_FLOAT = 0xDE, 58 RG16_FLOAT = 0xDE,
59 R11G11B10_FLOAT = 0xE0, 59 R11G11B10_FLOAT = 0xE0,
60 R32_SINT = 0xE3,
60 R32_UINT = 0xE4, 61 R32_UINT = 0xE4,
61 R32_FLOAT = 0xE5, 62 R32_FLOAT = 0xE5,
62 B5G6R5_UNORM = 0xE8, 63 B5G6R5_UNORM = 0xE8,
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp
index 1655ccf16..9707c353d 100644
--- a/src/video_core/surface.cpp
+++ b/src/video_core/surface.cpp
@@ -155,6 +155,8 @@ PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format)
155 return PixelFormat::R16I; 155 return PixelFormat::R16I;
156 case Tegra::RenderTargetFormat::R32_FLOAT: 156 case Tegra::RenderTargetFormat::R32_FLOAT:
157 return PixelFormat::R32F; 157 return PixelFormat::R32F;
158 case Tegra::RenderTargetFormat::R32_SINT:
159 return PixelFormat::R32I;
158 case Tegra::RenderTargetFormat::R32_UINT: 160 case Tegra::RenderTargetFormat::R32_UINT:
159 return PixelFormat::R32UI; 161 return PixelFormat::R32UI;
160 case Tegra::RenderTargetFormat::RG32_UINT: 162 case Tegra::RenderTargetFormat::RG32_UINT: