MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / endGpuDebuggerFrameCapture

Method endGpuDebuggerFrameCapture

OgreMain/src/OgreRenderSystem.cpp:1387–1405  ·  view source on GitHub ↗

---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1385 }
1386 //---------------------------------------------------------------------
1387 void RenderSystem::endGpuDebuggerFrameCapture( Window *window, const bool bDiscard )
1388 {
1389 if( !mRenderDocApi )
1390 return;
1391#if OGRE_NO_RENDERDOC_INTEGRATION == 0
1392 RENDERDOC_DevicePointer device = 0;
1393 RENDERDOC_WindowHandle windowHandle = 0;
1394 if( window )
1395 {
1396 window->getCustomAttribute( "RENDERDOC_DEVICE", device );
1397 window->getCustomAttribute( "RENDERDOC_WINDOW", windowHandle );
1398 }
1399
1400 if( bDiscard )
1401 mRenderDocApi->DiscardFrameCapture( device, windowHandle );
1402 else
1403 mRenderDocApi->EndFrameCapture( device, windowHandle );
1404#endif
1405 }
1406 //---------------------------------------------------------------------
1407 bool RenderSystem::loadRenderDocApi()
1408 {

Callers

nothing calls this directly

Calls 1

getCustomAttributeMethod · 0.45

Tested by

no test coverage detected