Skip to content

Commit

Permalink
Addressing comments in review
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaridade145 committed Nov 26, 2024
1 parent 90480ed commit c8cc31e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Cafe/HW/Latte/Renderer/Vulkan/TextureReadbackVk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,10 @@ 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 * 2;
}
else if (textureView->format == Latte::E_GX2SURFFMT::R5_G5_B5_A1_UNORM )
{
cemu_assert(textureFormat == VK_FORMAT_R8G8B8A8_UNORM);
return baseTexture->width * baseTexture->height * 4;
if(textureFormat == VK_FORMAT_R5G6B5_UNORM_PACK16){
return baseTexture->width * baseTexture->height * 2;
}
return 0;
}
else
{
Expand Down

0 comments on commit c8cc31e

Please sign in to comment.