microsoft / Win2D

Win2D is an easy-to-use Windows Runtime API for immediate mode 2D graphics rendering with GPU acceleration. It is available to C#, C++ and VB developers writing apps for the Windows Universal Platform (UWP). It utilizes the power of Direct2D, and integrates seamlessly with XAML and CoreWindow.
http://microsoft.github.io/Win2D
Other
1.82k stars 286 forks source link

The [NoComposition] tag on effects page means? #843

Closed fantasyz closed 3 years ago

fantasyz commented 3 years ago

On this page ( https://microsoft.github.io/Win2D/WinUI2/html/N_Microsoft_Graphics_Canvas_Effects.htm ), some effects are tagged [NoComposition]. Does it means those effects need to be the last one in a composition pipeline (No further composition)? Or does it mean I simply should not put it in the CompositeEffect?

lmadhavan commented 3 years ago

If you look at the documentation for one of those effects, you'll see:

Supported by Win2D but not Windows.UI.Composition.

This refers to the UWP composition layer, and any effects marked [NoComposition] cannot be used with this framework. It has no impact on raw Win2D, you can compose them in any manner as long as you are rendering it by yourself.