| 133 | } |
| 134 | |
| 135 | void ProfilerGPU::BeginFrame() |
| 136 | { |
| 137 | // Clear stats |
| 138 | RenderStatsData::Counter = RenderStatsData(); |
| 139 | _depth = 0; |
| 140 | auto& buffer = Buffers[CurrentBuffer]; |
| 141 | buffer.FrameIndex = Engine::FrameCount; |
| 142 | buffer.PresentTime = 0.0f; |
| 143 | |
| 144 | // Try to resolve previous frames |
| 145 | for (int32 i = 0; i < PROFILER_GPU_EVENTS_FRAMES; i++) |
| 146 | { |
| 147 | Buffers[i].TryResolve(); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | void ProfilerGPU::OnPresent() |
| 152 | { |
nothing calls this directly
no test coverage detected