| 68 | } |
| 69 | |
| 70 | void Tr2GpuProfiler::Begin( IRoot* owner, const char* label, Tr2RenderContextAL& context ) |
| 71 | { |
| 72 | if( m_capturing ) |
| 73 | { |
| 74 | Zone capture; |
| 75 | capture.type = Zone::REGION_BEGIN; |
| 76 | { |
| 77 | USE_MAIN_THREAD_RENDER_CONTEXT(); |
| 78 | CR( capture.query.Create( renderContext ) ); |
| 79 | CR( capture.timer.Create( renderContext ) ); |
| 80 | } |
| 81 | capture.owner = owner; |
| 82 | capture.message = label; |
| 83 | CR( capture.query.Begin( context ) ); |
| 84 | capture.timer.Begin( context ); |
| 85 | m_stack.push_back( m_zones.size() ); |
| 86 | m_zones.push_back( capture ); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | void Tr2GpuProfiler::End( Tr2RenderContextAL& renderContext ) |
| 91 | { |
no test coverage detected