Thanks to SharpDx we can now create complex effect graphs (in code) in our WinRT-XAML/C# apps.
I took the Xaml/Cx D2DBasicEffectGraph sample from the consumer preview and pretty much redid it to work with SharpDx for us managed programmers
1. Creating the Effect Graph
In this demo I graph 2 effects together ( BitmapSourceEffect –> GaussianEffect )
The BitmapSourceEffect feeds into the GaussianEffect (input)
2. Rendering the Graph on a Surface
Using a SurfaceImageSource I render the effect onto a D2DSurface. Also there are sliders to alter various exposed properties on the 2 above mentioned effects
3. Here’s a quick video of it in action:
4. Here’s the source of the sample:
Effect graphs are very powerful and it’s the most exciting feature of Dx11.1 in my opinion. I can’t wait to show you guys more stuff that I’ve been dreaming up with WinRT/XAML/DirectX/C# and of course SharpDx
Exciting times ahead!!!