---------------------------------------------------------------------
| 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 | { |
nothing calls this directly
no test coverage detected