Merge pull request #3461 from ReinUsesLisp/r32i-rt

video_core/surface: Add R32_SINT render target format
This commit is contained in:
Mat M 2020-02-25 17:47:14 -05:00 committed by GitHub
commit 45ac1c62c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,7 @@ enum class RenderTargetFormat : u32 {
RG16_UINT = 0xDD, RG16_UINT = 0xDD,
RG16_FLOAT = 0xDE, RG16_FLOAT = 0xDE,
R11G11B10_FLOAT = 0xE0, R11G11B10_FLOAT = 0xE0,
R32_SINT = 0xE3,
R32_UINT = 0xE4, R32_UINT = 0xE4,
R32_FLOAT = 0xE5, R32_FLOAT = 0xE5,
B5G6R5_UNORM = 0xE8, B5G6R5_UNORM = 0xE8,

View File

@ -155,6 +155,8 @@ PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format)
return PixelFormat::R16I; return PixelFormat::R16I;
case Tegra::RenderTargetFormat::R32_FLOAT: case Tegra::RenderTargetFormat::R32_FLOAT:
return PixelFormat::R32F; return PixelFormat::R32F;
case Tegra::RenderTargetFormat::R32_SINT:
return PixelFormat::R32I;
case Tegra::RenderTargetFormat::R32_UINT: case Tegra::RenderTargetFormat::R32_UINT:
return PixelFormat::R32UI; return PixelFormat::R32UI;
case Tegra::RenderTargetFormat::RG32_UINT: case Tegra::RenderTargetFormat::RG32_UINT: