mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 14:31:17 +12:00
Vulkan: Implement texture decoder for R5G6B5_UNORM to R8G8B8A8_UNORM (#320)
This commit is contained in:
parent
9541c8ae85
commit
11f6e2b7ee
2 changed files with 52 additions and 1 deletions
|
@ -2642,7 +2642,7 @@ void VulkanRenderer::GetTextureFormatInfoVK(Latte::E_GX2SURFFMT format, bool isD
|
|||
case Latte::E_GX2SURFFMT::R5_G6_B5_UNORM:
|
||||
if (m_supportedFormatInfo.fmt_r5g6b5_unorm_pack == false) {
|
||||
formatInfoOut->vkImageFormat = VK_FORMAT_R8G8B8A8_UNORM;
|
||||
formatInfoOut->decoder = nullptr;
|
||||
formatInfoOut->decoder = TextureDecoder_R5G6B5_UNORM_To_R8G8B8A8_UNORM::getInstance();
|
||||
}
|
||||
else {
|
||||
// Vulkan has R in MSB, GPU7 has it in LSB
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue