C# DirectX samples, based on SharpDX and rendering within a WPF user interface.
Making it easy for a C# / WPF developer to start learning and programing with DirectX
The purpose of this project is to provide a set of sample showing off DirectX in C# from a WPF developer perspective.
It is intended to be a starting point for any C# / WPF developer curious about DirectX.
It provide some vanilla implementation that get DirectX up and running in WPF.
- It runs on SharpDX (pure C# DirectX wrapper),
Alexandre Mutel's blog
- There is a base library named SharpDX.WPF (not affiliated with SharpDX, but on top of it), that provides the following
- A DXImageSource : D3DImage class that has implement SetBackBuffer() for D3D10, D3D11
- A DXElement : FrameworkElement class that can render arbitrary DirectX content
- Some vanilla Direct3D Device wrapper classes (D3D and its subclass) that implement the interface to attach to
- Some useful Direct3D utility class. So far: FPS, ConstantBuffer,
- I also added the source code from
Nexus and Meshellator which I hope to do something with later on
Also note that (currently) this library is used a hacked version of SharpDX (as explained in the project README)..
You will need the
to compile and run those sample.
(by Alexandre Mutel! Again!) will give you syntax highlight in shaders, much better! :)
As a DirectX beginner you will look at the currently implemented samples:
- Week00, just show off various Direct3D interface up and running (D3D11+D2D1 in progress....)
- Week00ToFile show how to render and save a scene as an image
- Week01D3D11Tutorials implement the 7
Direct3D11 tutorials from MSDN
- Week02Samples work in progress on samples. It shows a Window with a TabItem for each sample that I have implemented, or I hope to implement (with a link!). But many are not implemented yet...