attempt to tracy profile WPF app that being rendered to it from D3D11 (via C++ DLL) breaks interop to WPF
#427 创建于 2022年7月15日
仓库指标
- Star
- (6,366 star)
- PR 合并指标
- (平均合并 4天) (30 天内合并 29 个 PR)
描述
Hi,
I'm having some weird issue, i'll try to describe the problem:
I have WPF (.NET framework v4.8) application that it's main UI is being rendered from an unmanaged C++ DLL.
The interop to WPD is performed via D3DImage (https://docs.microsoft.com/en-us/dotnet/api/system.windows.interop.d3dimage?view=windowsdesktop-6.0) and by having D3D11 Image passes to the image.
I will begin and say that currently the application is working properly & renders everything just fine.
My problem is every time I attempt to use Tracy Profiler to capture GPU data,
specifically place in my code this line:
tracyCtx = TracyD3D11Context(dev, devCtx);
The image on my WPF UI is no longer rendering. Attempting to debug this under RenderDoc shows the image is rendered correctly to the RenderTarget, so I assume there is something being done internally that somehow "mess" up the interop to WPF.
Can anyone think of what could be the possible cause for the problem ? Kinda out of ideas as to what can cause it...
Thanks in advanced, Idan