angle/include/GLSLANG
Shahbaz Youssefi c5271e8e69 Vulkan: Emulate GL_KHR_blend_equation_advanced
Based on a change by Brandon Schade <b.schade@samsung.com>

In the translator, when advanced blend is enabled, an input attachment
is added.  Based on the listed advanced blend equations, emulation code
is added that performs those equations' functions.  The blend equation
itself is passed through a driver uniform.

Note that the advanced blend extension only allows a single output to
use advanced blend, and that should be at location 0.

In the Vulkan backend, when advanced blend is used, the driver uniform
to select the equation is updated and normal blending is disabled.

Bug: angleproject:3586
Change-Id: Icc42e8be238d34fca149087eb9cfe616a7643a6b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3575738
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Yuxin Hu <yuxinhu@google.com>
Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
2022-04-13 19:02:22 +00:00
..
ShaderLang.h Vulkan: Emulate GL_KHR_blend_equation_advanced 2022-04-13 19:02:22 +00:00
ShaderVars.h Vulkan: Shader support for KHR_blend_equation_advanced 2022-02-23 20:16:50 +00:00