Skip to content

Commit 1575866

Browse files
committed
Vulkan: Add R32_X8_FLOAT format
1 parent 517e68f commit 1575866

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2439,6 +2439,11 @@ void VulkanRenderer::GetTextureFormatInfoVK(Latte::E_GX2SURFFMT format, bool isD
24392439
// used by Color Splash and Resident Evil
24402440
formatInfoOut->vkImageFormat = VK_FORMAT_R8G8B8A8_UINT; // todo - should we use ABGR format?
24412441
formatInfoOut->decoder = TextureDecoder_X24_G8_UINT::getInstance(); // todo - verify
2442+
case Latte::E_GX2SURFFMT::R32_X8_FLOAT:
2443+
// seen in Disney Infinity 3.0
2444+
formatInfoOut->vkImageFormat = VK_FORMAT_R32_SFLOAT;
2445+
formatInfoOut->decoder = TextureDecoder_NullData64::getInstance();
2446+
break;
24422447
default:
24432448
cemuLog_log(LogType::Force, "Unsupported color texture format {:04x}", (uint32)format);
24442449
cemu_assert_debug(false);

0 commit comments

Comments
 (0)