Added ability to programmatically capture frame with RenderDoc.

This commit is contained in:
Branimir Karadžić
2016-06-02 18:46:43 -07:00
parent 52d0563136
commit e46135da8c
11 changed files with 41 additions and 12 deletions

View File

@@ -5020,6 +5020,11 @@ BX_PRAGMA_DIAGNOSTIC_POP();
return;
}
if (_render->m_capture)
{
renderDocTriggerCapture();
}
PIX_BEGINEVENT(D3DCOLOR_RGBA(0xff, 0x00, 0x00, 0xff), L"rendererSubmit");
BGFX_GPU_PROFILER_BEGIN_DYNAMIC("rendererSubmit");