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

Method startGpuDebuggerFrameCapture

OgreMain/src/OgreRenderSystem.cpp:1366–1385  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1364 }
1365 //---------------------------------------------------------------------
1366 bool RenderSystem::startGpuDebuggerFrameCapture( Window *window )
1367 {
1368 if( !mRenderDocApi )
1369 {
1370 loadRenderDocApi();
1371 if( !mRenderDocApi )
1372 return false;
1373 }
1374#if OGRE_NO_RENDERDOC_INTEGRATION == 0
1375 RENDERDOC_DevicePointer device = 0;
1376 RENDERDOC_WindowHandle windowHandle = 0;
1377 if( window )
1378 {
1379 window->getCustomAttribute( "RENDERDOC_DEVICE", device );
1380 window->getCustomAttribute( "RENDERDOC_WINDOW", windowHandle );
1381 }
1382 mRenderDocApi->StartFrameCapture( device, windowHandle );
1383#endif
1384 return true;
1385 }
1386 //---------------------------------------------------------------------
1387 void RenderSystem::endGpuDebuggerFrameCapture( Window *window, const bool bDiscard )
1388 {

Callers

nothing calls this directly

Calls 1

getCustomAttributeMethod · 0.45

Tested by

no test coverage detected