| 52 | } |
| 53 | |
| 54 | void Tr2GpuProfiler::EndFrame() |
| 55 | { |
| 56 | if( m_capturing ) |
| 57 | { |
| 58 | USE_MAIN_THREAD_RENDER_CONTEXT(); |
| 59 | CR( m_frameFence.Create( renderContext ) ); |
| 60 | CR( m_frameFence.PutFence( renderContext ) ); |
| 61 | |
| 62 | while( !m_stack.empty() ) |
| 63 | { |
| 64 | End( renderContext ); |
| 65 | } |
| 66 | m_capturing = false; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | void Tr2GpuProfiler::Begin( IRoot* owner, const char* label, Tr2RenderContextAL& context ) |
| 71 | { |