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