diff options
author | Mat M <mathew1800@gmail.com> | 2020-02-25 23:47:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 23:47:14 +0100 |
commit | 45ac1c62c63ed97dc9d4eacbc42f29e41c061deb (patch) | |
tree | a5b6389d647c281bd8cd5bc92b4da4315f3970dc | |
parent | Merge pull request #3460 from ReinUsesLisp/unused-format-getter (diff) | |
parent | video_core/surface: Add R32_SINT render target format (diff) | |
download | yuzu-45ac1c62c63ed97dc9d4eacbc42f29e41c061deb.tar yuzu-45ac1c62c63ed97dc9d4eacbc42f29e41c061deb.tar.gz yuzu-45ac1c62c63ed97dc9d4eacbc42f29e41c061deb.tar.bz2 yuzu-45ac1c62c63ed97dc9d4eacbc42f29e41c061deb.tar.lz yuzu-45ac1c62c63ed97dc9d4eacbc42f29e41c061deb.tar.xz yuzu-45ac1c62c63ed97dc9d4eacbc42f29e41c061deb.tar.zst yuzu-45ac1c62c63ed97dc9d4eacbc42f29e41c061deb.zip |
-rw-r--r-- | src/video_core/gpu.h | 1 | ||||
-rw-r--r-- | src/video_core/surface.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 8bb6fc60e..ba8c9d665 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -57,6 +57,7 @@ enum class RenderTargetFormat : u32 { RG16_UINT = 0xDD, RG16_FLOAT = 0xDE, R11G11B10_FLOAT = 0xE0, + R32_SINT = 0xE3, R32_UINT = 0xE4, R32_FLOAT = 0xE5, 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) return PixelFormat::R16I; case Tegra::RenderTargetFormat::R32_FLOAT: return PixelFormat::R32F; + case Tegra::RenderTargetFormat::R32_SINT: + return PixelFormat::R32I; case Tegra::RenderTargetFormat::R32_UINT: return PixelFormat::R32UI; case Tegra::RenderTargetFormat::RG32_UINT: |