-
-
Notifications
You must be signed in to change notification settings - Fork 678
Getting started with WPF and SharpDX
Main solution file: HelixToolkit.SharpDX.sln
.
Windows 10. Or Windows 7 with Windows Development Kit 10 (needs d3dcompiler_47.dll from the kit)
For Windows 7. Depends on your program build with X86/X64/AnyCPU, add C:\Program Files (x86)\Windows Kits\10\Redist\D3D\x64 or C:\Program Files (x86)\Windows Kits\10\Redist\D3D\x86 into the system environment path. Or copy corresponding d3dcompiler_47.dll into your program bin folder.
For Windows 7, your program may fail to run due to lack of update KB2670838 (https://www.catalog.update.microsoft.com/Search.aspx?q=KB2670838)
Open HelixToolkit.SharpDX.sln
with Visual Studio 2019.
Build Solution using Visual Studio.
Auto adapter selection in EffectsManager does not guarantee to use external Nvidia graphic card for rendering. To make sure using the Nvidia graphic card, add static NVOptimusEnabler nvEnabler = new NVOptimusEnabler();
in MainWindow.xaml.cs
.
Using RenderDoc for SharpDX render profiling
To use RenderDoc, following settings must be set on Viewport3DX.
EnableSwapChainRendering = true;
EnableD2DRendering = false;