forked from ShuriZma/suyu
1
0
Fork 0

gpu: Add R11G11B10_FLOAT to RenderTargetBytesPerPixel.

- Used by Super Mario Odyssey.
This commit is contained in:
bunnei 2018-08-08 02:40:04 -04:00
parent 4fa3511a63
commit 7bf422d58c
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
case RenderTargetFormat::RGB10_A2_UNORM: case RenderTargetFormat::RGB10_A2_UNORM:
case RenderTargetFormat::BGRA8_UNORM: case RenderTargetFormat::BGRA8_UNORM:
case RenderTargetFormat::R32_FLOAT: case RenderTargetFormat::R32_FLOAT:
case RenderTargetFormat::R11G11B10_FLOAT:
return 4; return 4;
default: default:
UNIMPLEMENTED_MSG("Unimplemented render target format {}", static_cast<u32>(format)); UNIMPLEMENTED_MSG("Unimplemented render target format {}", static_cast<u32>(format));