Advertisement

DX12 + WPF : Still no way ?

Started by September 27, 2018 05:30 PM
1 comment, last by Quat 6 years, 3 months ago

Hi,

I am currently hosting my DX12 renderer in WPF application by using a System.Windows.Form.Panel into a WindowsFormHost (WindowsFormIntegration). It work but it feel like a dirty trick and I am not sure if I am going to encounter problems this way.

I can't seem to find anyone or any sample on internet of someone who has been able to host DX12 into WPF.

I know WPFDXInterop can do it with DX11 but it doesn't seem to be updated anymore to support DX12.

Does anyone has achieved it ?

Thank you.

I can't comment about DX12 since I haven't tried/done it, but you might be able to use

https://docs.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-11-on-12

Regarding the WindowsFormHost, in my experience, this is the way to go if you can live without overlaying WPF elements on top of your 3D viewport. I've had bad performance experience with D3DImage interop, as you are tied to the WPF rendering/update system.

-----Quat

This topic is closed to new replies.

Advertisement