textures: keep native formats unless depth promotion is known

Co-authored-by: Ettore Sartori <85788613+Ekt0re@users.noreply.github.com>
Co-authored-by: Mac <me@itsmemac.com>
This commit is contained in:
nmzik
2026-09-06 21:40:58 +04:00
parent ceb2b664e0
commit c9ff09c7c2
@@ -646,9 +646,9 @@ TextureBinding RenderExecutor::ResolveTexture(const ShaderRecompiler::IR::ImageR
auto pixel_format = surface_format.vk_format; auto pixel_format = surface_format.vk_format;
if (resource.depth_compare) { if (resource.depth_compare) {
const auto* depth_format = FindGuestDepthFormatPolicy(format); if (const auto* depth_format = FindGuestDepthFormatPolicy(format)) {
EXIT_NOT_IMPLEMENTED(depth_format == nullptr); pixel_format = depth_format->depth_attachment_format;
pixel_format = depth_format->depth_attachment_format; }
} }
const auto storage_view_format = storage && format == Prospero::BufferFormat::k32SInt const auto storage_view_format = storage && format == Prospero::BufferFormat::k32SInt
? vk::Format::eR32Uint ? vk::Format::eR32Uint