Update src/Cafe/HW/Latte/Renderer/Vulkan/TextureReadbackVk.cpp

Latte::E_GX2SURFFMT::R5_G6_B5_UNORM is 2 bytes per texel

Co-authored-by: Exzap <13877693+Exzap@users.noreply.github.com>
This commit is contained in:
rcaridade145 2024-11-26 13:19:02 +00:00 committed by GitHub
parent 31c6ddd0fd
commit 90480edc02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ uint32 LatteTextureReadbackInfoVk::GetImageSize(LatteTextureView* textureView)
else if (textureView->format == Latte::E_GX2SURFFMT::R5_G6_B5_UNORM )
{
cemu_assert(textureFormat == VK_FORMAT_R8G8B8A8_UNORM);
return baseTexture->width * baseTexture->height * 4;
return baseTexture->width * baseTexture->height * 2;
}
else if (textureView->format == Latte::E_GX2SURFFMT::R5_G5_B5_A1_UNORM )
{