mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-24 09:22:59 +00:00
format_lookup_table: Implement R32_B24G8 with D32_FLOAT_S8_UINT
This format is similar to Z32_FLOAT_X24S8_UINT, which is implemented with D32_FLOAT_S8_UINT. Used in Persona 5 Royal
This commit is contained in:
parent
6b71530fa8
commit
f16db300c6
|
@ -150,6 +150,8 @@ PixelFormat PixelFormatFromTextureInfo(TextureFormat format, ComponentType red,
|
||||||
return PixelFormat::D24_UNORM_S8_UINT;
|
return PixelFormat::D24_UNORM_S8_UINT;
|
||||||
case Hash(TextureFormat::D32S8, FLOAT, UINT, UNORM, UNORM, LINEAR):
|
case Hash(TextureFormat::D32S8, FLOAT, UINT, UNORM, UNORM, LINEAR):
|
||||||
return PixelFormat::D32_FLOAT_S8_UINT;
|
return PixelFormat::D32_FLOAT_S8_UINT;
|
||||||
|
case Hash(TextureFormat::R32_B24G8, FLOAT, UINT, UNORM, UNORM, LINEAR):
|
||||||
|
return PixelFormat::D32_FLOAT_S8_UINT;
|
||||||
case Hash(TextureFormat::BC1_RGBA, UNORM, LINEAR):
|
case Hash(TextureFormat::BC1_RGBA, UNORM, LINEAR):
|
||||||
return PixelFormat::BC1_RGBA_UNORM;
|
return PixelFormat::BC1_RGBA_UNORM;
|
||||||
case Hash(TextureFormat::BC1_RGBA, UNORM, SRGB):
|
case Hash(TextureFormat::BC1_RGBA, UNORM, SRGB):
|
||||||
|
|
Loading…
Reference in a new issue