Direct3D Drawing in WPF

In Windows8, you can use SurfaceImageSource, VirtualSurfaceImageSource, SwapChainBackgroundPanel to let DirectX content into a XAML app.

Visual Studio 2010 has removed Microsoft.DirectX support, so if we wanna use D3D in WPF, we need to leverage SlimDX or SharpDX.

However, when you use older Windows version, ex: Win7, WinXP, you only can adopt D3DImage.

D3DImage Lock, unLock image, and copy backbuffer to this image.

You can download the sample code here:


Popular posts from this blog

Fast subsurface scattering

Physically-Based Rendering in WebGL

tex2D vs. tex2Dproj