Search code examples
c#wpfslimdxdirectx-11

SlimDX and WPF (DirectX 11)


I want to use SlimDX (DirectX 11) to render the contents of an Image in WPF.

The problem is that I can't find a way to link the SwapChain to a D3DImage. (The DirectX 11 example uses the SlimDX RenderForm.)


Solution

  • Look at the WPF example in the DX10 examples. It should work about the same for DX11 I think. Because the D3DImage only works with DX9 stuff, you need to use a dx10/11 shared texture.