mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 13:03:05 +01:00
Added ability to programmatically capture frame with RenderDoc.
This commit is contained in:
@@ -56,7 +56,7 @@ namespace bgfx
|
||||
}
|
||||
|
||||
pRENDERDOC_GetAPI RENDERDOC_GetAPI;
|
||||
static RENDERDOC_API_1_0_0* s_renderDoc;
|
||||
static RENDERDOC_API_1_0_1* s_renderDoc;
|
||||
|
||||
void* loadRenderDoc()
|
||||
{
|
||||
@@ -105,6 +105,14 @@ namespace bgfx
|
||||
}
|
||||
}
|
||||
|
||||
void renderDocTriggerCapture()
|
||||
{
|
||||
if (NULL != s_renderDoc)
|
||||
{
|
||||
s_renderDoc->TriggerCapture();
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace bgfx
|
||||
|
||||
#else
|
||||
@@ -121,6 +129,10 @@ namespace bgfx
|
||||
{
|
||||
}
|
||||
|
||||
void renderDocTriggerCapture()
|
||||
{
|
||||
}
|
||||
|
||||
} // namespace bgfx
|
||||
|
||||
#endif // BGFX_CONFIG_DEBUG_PIX && (BX_PLATFORM_WINDOWS || BX_PLATFORM_LINUX)
|
||||
|
||||
Reference in New Issue
Block a user