renderer_opengl: Implement RenderTargetFormat::RGBA16_UNORM.

- Used by Breath of the Wild.
This commit is contained in:
bunnei 2018-08-13 00:34:20 -04:00
parent 46fbf6dd92
commit 6e52f37d5b
4 changed files with 48 additions and 37 deletions

View file

@ -47,6 +47,7 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
case RenderTargetFormat::RGBA32_UINT:
return 16;
case RenderTargetFormat::RGBA16_UINT:
case RenderTargetFormat::RGBA16_UNORM:
case RenderTargetFormat::RGBA16_FLOAT:
case RenderTargetFormat::RG32_FLOAT:
case RenderTargetFormat::RG32_UINT: