Search code examples
c#.netwpfeffectspixel-shader

Where are the WPF effects defined?


I am wondering where the WPF effects such as Blur is defined? They are pixel shaders, right? Is there a way to peek into their implementation?


Solution

  • Look in the PresentationCore.dll assembly, where System.Windows.Media.Effects.Effect and its derivatives are defined. If you take it apart using Reflector you should be able to find the signatures and, hopefully, any implementation details.

    It would seem that pixel shaders are effectively used by, well, ShaderEffect...