Skip to content

Draft: [WIP] Attach shaders to cogl pipelines when painting actors with color state

Naveen Kumar requested to merge naveenk2/mutter:cogl-attach-shaders into main

Attach shaders to pipelines when painting actors that use the color state:

  • Check if color state information is available for given clutter actors, if so, create the shader requirements.
  • These shader requirements are needed to create the shaders dynamically based on colorspace information of the color state such as sRGB, PQ etc.
  • Get the Fragment shader and layer shader snippets and add them to the pipeline

This will help

  • To make clutter aware of HDR surfaces by attaching shaders
  • To make clutter blend in a linear color space

Notes: I have started writing basics of shaders to address above requirements by referring some of our previous work 4d83169f

This MR adds support for step 2 of the issue #2134

Edited by Naveen Kumar

Merge request reports