[vulkan] Replaced old logic for DescriptorType for a numeric handling per type to avoid mismatches during format binding

This commit is contained in:
CamilleLaVey
2026-03-05 21:45:38 -04:00
committed by lizzie
parent ee1ffbaf2e
commit 186c0b0cc7
6 changed files with 112 additions and 41 deletions
@@ -867,7 +867,8 @@ void GraphicsPipeline::MakePipeline(VkRenderPass render_pass) {
VK_COLOR_COMPONENT_A_BIT,
};
const auto& blend{key.state.attachments[index]};
const bool supports_blending = !VideoCore::Surface::IsPixelFormatInteger(key.color_formats[index]);
const PixelFormat color_format{DecodeFormat(key.state.color_formats[index])};
const bool supports_blending = !VideoCore::Surface::IsPixelFormatInteger(color_format);
const std::array mask{blend.Mask()};
VkColorComponentFlags write_mask{};
for (size_t i = 0; i < mask_table.size(); ++i) {