diff --git a/renderdoc/driver/d3d11/d3d11_replay.cpp b/renderdoc/driver/d3d11/d3d11_replay.cpp index 2b6df5863..dbe333c98 100644 --- a/renderdoc/driver/d3d11/d3d11_replay.cpp +++ b/renderdoc/driver/d3d11/d3d11_replay.cpp @@ -135,6 +135,8 @@ void D3D11Replay::CreateResources(IDXGIFactory *factory) } } + m_pDevice->GetShaderCache()->SetCaching(true); + InitStreamOut(); RenderDoc::Inst().SetProgress(LoadProgress::DebugManagerInit, 0.1f); @@ -171,6 +173,8 @@ void D3D11Replay::CreateResources(IDXGIFactory *factory) RenderDoc::Inst().SetProgress(LoadProgress::DebugManagerInit, 0.9f); + m_pDevice->GetShaderCache()->SetCaching(false); + AMDCounters *countersAMD = NULL; NVCounters *countersNV = NULL; IntelCounters *countersIntel = NULL;