sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.7k stars 639 forks source link

Trying to create custom Direct2D effect #736

Open dbriard opened 8 years ago

dbriard commented 8 years ago

Hi all,

I am trying to use a custom effect with Direct2D (the effect is the one in your sample RippleEffect) but I got an exception with a message "Element Not Found" in the second line below... no more info.

Its in a WPF project, do you have any clue?

_d2dFactory.RegisterEffect<RippleEffect>(RippleEffect.GUID_RipplePixelShader); var rippleEffect = new d2d.Effect<RippleEffect>(_d2dContext);

Thanks in advance for any help.

xoofx commented 8 years ago

Hi, haven't touch the D2D part for a while. I don't know if the RippleEffect is still working so it might be buggy (unfortunately, I have no spare time to dig into this)