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: https://github.com/DaoshengMu/WPFd3dImageCpp


http://www.gamedev.net/topic/619534-wpf-directx-11-via-d3dimage/

http://www.notesonsoftware.com/directx/initializing-directx-9-drawing-in-wpf/

http://code4k.blogspot.tw/2011/03/benchmarking-cnet-direct3d-11-apis-vs.html

http://www.codeproject.com/Articles/28526/Introduction-to-D3DImage

http://social.msdn.microsoft.com/forums/en-US/wpf/thread/22a83db9-e903-49a5-815b-0647f157bda6

http://www.codeproject.com/Articles/351939/SurfaceImageSource-Manager-Connecting-Csharp-and-D

http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2644759-provide-better-directx-support-in-wpf

http://msdn.microsoft.com/en-us/library/cc656785.aspx

http://msdn.microsoft.com/en-us/library/windows/apps/hh825871.aspx


Comments

Popular posts from this blog

董事長您好

After reading Steve Jobs Autobiography

Drawing textured cube with Vulkan on Android