renderer_opengl: Implement RenderTargetFormat::RGBA16_UINT.

- Used by Breath of the Wild.
This commit is contained in:
bunnei 2018-08-13 00:04:52 -04:00
parent 54ef9302a2
commit bdf17fe0cc
4 changed files with 45 additions and 34 deletions

View file

@ -46,6 +46,7 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
case RenderTargetFormat::RGBA32_FLOAT:
case RenderTargetFormat::RGBA32_UINT:
return 16;
case RenderTargetFormat::RGBA16_UINT:
case RenderTargetFormat::RGBA16_FLOAT:
case RenderTargetFormat::RG32_FLOAT:
return 8;