wolfpld/tracy

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

Open

#427 aperta il 15 lug 2022

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)C++ (474 fork)batch import
help wantedquestionwindows

Metriche repository

Star
 (6366 star)
Metriche merge PR
 (Merge medio 4g) (29 PR mergiate in 30 g)

Descrizione

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

Guida contributor