mirror of
https://github.com/libretro/parallel-gx1.git
synced 2026-11-07 04:26:01 -10:00
Where the device has VK_EXT_extended_dynamic_state3's colour blend enable, equation and write mask, a GX or ubershader pipeline's blending is set per draw with its cull mode and depth state, and left out of the pipeline and of the key it is shared by: pipelines that differ only in blend enable, factors, equations or which channels are written are one VkPipeline. Logic op and dual-source blending stay in the pipeline, the latter as it decides the shader's outputs. The state tracker sets the blending for every colour attachment when it, or the attachments, differ from what the command buffer has set already.