wolfpld/tracy

attempt to tracy profile WPF app that being rendered to it from D3D11 (via C++ DLL) breaks interop to WPF

Open

#427 geöffnet am 15. Juli 2022

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)C++ (474 Forks)batch import
help wantedquestionwindows

Repository-Metriken

Stars
 (6.366 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 4T) (29 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide