UIKit-cross-platform icon indicating copy to clipboard operation
UIKit-cross-platform copied to clipboard

Add CAGradientLayer, Allow Layer Flattening for proper masking and opacity compositing

Open ephemer opened this issue 1 week ago • 0 comments

Type of change: Feature

Motivation (current vs expected behavior)

  • Add a simple CPU-only (for now) CAGradientLayer and the beginnings of a GPU implementation.
  • Add layer flattening
    • With this, non-trivial layers with non-zero opacity and/or a mask are rendered as a separate render tree and then composited onto the window (or into each other)
    • This enables proper masking, e.g. via a gradient layer (via alpha) or using non-trivial shapes

ephemer avatar Dec 12 '25 15:12 ephemer