mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-14 12:32:52 +00:00
Implement RenderTargetFormat::BGR5A1_UNORM (Pokken Tournament DX)
This commit is contained in:
parent
df5a44a40b
commit
0019a36b41
|
@ -42,6 +42,7 @@ enum class RenderTargetFormat : u32 {
|
||||||
R32_UINT = 0xE4,
|
R32_UINT = 0xE4,
|
||||||
R32_FLOAT = 0xE5,
|
R32_FLOAT = 0xE5,
|
||||||
B5G6R5_UNORM = 0xE8,
|
B5G6R5_UNORM = 0xE8,
|
||||||
|
BGR5A1_UNORM = 0xE9,
|
||||||
RG8_UNORM = 0xEA,
|
RG8_UNORM = 0xEA,
|
||||||
RG8_SNORM = 0xEB,
|
RG8_SNORM = 0xEB,
|
||||||
R16_UNORM = 0xEE,
|
R16_UNORM = 0xEE,
|
||||||
|
|
|
@ -316,6 +316,8 @@ struct SurfaceParams {
|
||||||
return PixelFormat::R11FG11FB10F;
|
return PixelFormat::R11FG11FB10F;
|
||||||
case Tegra::RenderTargetFormat::B5G6R5_UNORM:
|
case Tegra::RenderTargetFormat::B5G6R5_UNORM:
|
||||||
return PixelFormat::B5G6R5U;
|
return PixelFormat::B5G6R5U;
|
||||||
|
case Tegra::RenderTargetFormat::BGR5A1_UNORM:
|
||||||
|
return PixelFormat::A1B5G5R5U;
|
||||||
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:
|
||||||
|
@ -576,6 +578,7 @@ struct SurfaceParams {
|
||||||
case Tegra::RenderTargetFormat::RG16_UNORM:
|
case Tegra::RenderTargetFormat::RG16_UNORM:
|
||||||
case Tegra::RenderTargetFormat::R16_UNORM:
|
case Tegra::RenderTargetFormat::R16_UNORM:
|
||||||
case Tegra::RenderTargetFormat::B5G6R5_UNORM:
|
case Tegra::RenderTargetFormat::B5G6R5_UNORM:
|
||||||
|
case Tegra::RenderTargetFormat::BGR5A1_UNORM:
|
||||||
case Tegra::RenderTargetFormat::RG8_UNORM:
|
case Tegra::RenderTargetFormat::RG8_UNORM:
|
||||||
case Tegra::RenderTargetFormat::RGBA16_UNORM:
|
case Tegra::RenderTargetFormat::RGBA16_UNORM:
|
||||||
return ComponentType::UNorm;
|
return ComponentType::UNorm;
|
||||||
|
|
Loading…
Reference in a new issue