Vulkan: Implement texture decoder for R5G6B5_UNORM to R8G8B8A8_UNORM (#320)

This commit is contained in:
Tillsunset 2022-10-01 18:48:13 -05:00 committed by GitHub
parent 9541c8ae85
commit 11f6e2b7ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 1 deletions

View file

@ -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