Skip to content

Commit f52970c

Browse files
committed
Vulkan: Allow RGBA16F texture format with SRGB bit
1 parent e02cc42 commit f52970c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,6 +2212,7 @@ void VulkanRenderer::GetTextureFormatInfoVK(Latte::E_GX2SURFFMT format, bool isD
22122212
formatInfoOut->decoder = TextureDecoder_R32_G32_B32_A32_UINT::getInstance();
22132213
break;
22142214
case Latte::E_GX2SURFFMT::R16_G16_B16_A16_FLOAT:
2215+
case Latte::E_GX2SURFFMT::R16_G16_B16_A16_FLOAT | Latte::E_GX2SURFFMT::FMT_BIT_SRGB: // Seen in Sonic Transformed level Starry Speedway. SRGB should just be ignored for native float formats?
22152216
formatInfoOut->vkImageFormat = VK_FORMAT_R16G16B16A16_SFLOAT;
22162217
formatInfoOut->decoder = TextureDecoder_R16_G16_B16_A16_FLOAT::getInstance();
22172218
break;

0 commit comments

Comments
 (0)