Search code examples
wpfdirectxshaderhlsl

Current best practice for compiling pixel shaders in WPF?


I'd like to color some icons in a WPF application using a pixel shader. However, when I go to get the DirectX SDK to get fxc, I see that it's deprecated -- I find links to DirectX11 and the new "Effects" system in WPF. However, that seems to be deprecated as well.

I'm wondering: what is the current practice to get a pixel shader into WPF? For context (though this shouldn't matter technically), I'm using a Prism/Unity-based MVVM architecture, so I'd like to eventually handle these colors through XAML binding.

I see alot of people using SlimDX, but I'd really like to avoid introducing yet another library dependency into my application.


Solution

  • The DirectX SDK was merged into the Windows SDK back when Windows 8 was released [source], which is where you can find the newer versions of FXC.