Skip to content

Draft: render/gles2: unify fragment shader

Simon Ser requested to merge emersion/wlroots:gles2-uber-shader into master

Instead of having 3 different fragment shaders for textures and 1 more for quads, unify them all and compile different variants via a SOURCE constant.

In the future, we will have more variant dimensions: pre-multiplied alpha on/off, color transformation, etc. It will become inpractical to have one file per combination.

Weston has a similar approach:

Depends on !3803 (merged) and !3807 (merged)

Edited by Simon Ser

Merge request reports