mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-07 16:29:08 +01:00
Merge pull request #977 from bunnei/bgr565
gl_rasterizer_cached: Implement RenderTargetFormat::B5G6R5_UNORM.
This commit is contained in:
commit
c333bfc193
2 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,7 @@ enum class RenderTargetFormat : u32 {
|
||||||
RG16_FLOAT = 0xDE,
|
RG16_FLOAT = 0xDE,
|
||||||
R11G11B10_FLOAT = 0xE0,
|
R11G11B10_FLOAT = 0xE0,
|
||||||
R32_FLOAT = 0xE5,
|
R32_FLOAT = 0xE5,
|
||||||
|
B5G6R5_UNORM = 0xE8,
|
||||||
R16_FLOAT = 0xF2,
|
R16_FLOAT = 0xF2,
|
||||||
R8_UNORM = 0xF3,
|
R8_UNORM = 0xF3,
|
||||||
};
|
};
|
||||||
|
|
|
@ -221,6 +221,8 @@ struct SurfaceParams {
|
||||||
return PixelFormat::RG32F;
|
return PixelFormat::RG32F;
|
||||||
case Tegra::RenderTargetFormat::R11G11B10_FLOAT:
|
case Tegra::RenderTargetFormat::R11G11B10_FLOAT:
|
||||||
return PixelFormat::R11FG11FB10F;
|
return PixelFormat::R11FG11FB10F;
|
||||||
|
case Tegra::RenderTargetFormat::B5G6R5_UNORM:
|
||||||
|
return PixelFormat::B5G6R5;
|
||||||
case Tegra::RenderTargetFormat::RGBA32_UINT:
|
case Tegra::RenderTargetFormat::RGBA32_UINT:
|
||||||
return PixelFormat::RGBA32UI;
|
return PixelFormat::RGBA32UI;
|
||||||
case Tegra::RenderTargetFormat::R8_UNORM:
|
case Tegra::RenderTargetFormat::R8_UNORM:
|
||||||
|
@ -441,6 +443,7 @@ struct SurfaceParams {
|
||||||
case Tegra::RenderTargetFormat::RGB10_A2_UNORM:
|
case Tegra::RenderTargetFormat::RGB10_A2_UNORM:
|
||||||
case Tegra::RenderTargetFormat::R8_UNORM:
|
case Tegra::RenderTargetFormat::R8_UNORM:
|
||||||
case Tegra::RenderTargetFormat::RG16_UNORM:
|
case Tegra::RenderTargetFormat::RG16_UNORM:
|
||||||
|
case Tegra::RenderTargetFormat::B5G6R5_UNORM:
|
||||||
return ComponentType::UNorm;
|
return ComponentType::UNorm;
|
||||||
case Tegra::RenderTargetFormat::RG16_SNORM:
|
case Tegra::RenderTargetFormat::RG16_SNORM:
|
||||||
return ComponentType::SNorm;
|
return ComponentType::SNorm;
|
||||||
|
|
Loading…
Reference in a new issue