locked
Using a blank Xaml project for a Direct3D app, how do you know which DirectX source files to import?

    Question

  • If I create a Direct3D app, there are many external dependencies that give me access to Direct3D objects. Do I need to write these down and add them to my blank Xaml project so that I can have Xaml + Direct3D? If this is not the best approach, could someone explain the best approach?

    Thanks in advance

    Tuesday, July 31, 2012 3:49 AM

Answers

  • Alternatively if you are creating a SwapChainBackgroundPanel-based app with XAML+D3D it's probably easiest to just create a new C++ "Direct2D app (XAML)" in Visual Studio - it's a XAML+DX project template that sets up all the D3D dependencies for you.  It includes both D3D and Direct2D, but you can simply remove the few lines of D2D code if desired.
    • Marked as answer by ben-smith Tuesday, July 31, 2012 4:19 PM
    Tuesday, July 31, 2012 4:11 PM

All replies