bombomby / optick

C++ Profiler For Games
https://optick.dev
MIT License
2.95k stars 296 forks source link

Add a shutdown D3D12 function to correctly free the D3D12 resources #167

Open mamoniem opened 2 years ago

mamoniem commented 2 years ago

When closing a D3D12 based application, there will be some errors due to the optick resources. Would be called like so:

void ShutdownD3D12()
{
#ifdef WITH_OPTICK
    OPTICK_GPU_SHUTDOWN_D3D12();
#endif

//the rest of d3d12 shutting down
}

this pull related to https://github.com/bombomby/optick/issues/121