| 115 | } |
| 116 | |
| 117 | void ProfilerGPU::EndEvent(int32 index) |
| 118 | { |
| 119 | auto context = GPUDevice::Instance->GetMainContext(); |
| 120 | #if GPU_ALLOW_PROFILE_EVENTS |
| 121 | if (EventsEnabled) |
| 122 | context->EventEnd(); |
| 123 | #endif |
| 124 | if (index == -1) |
| 125 | return; |
| 126 | _depth--; |
| 127 | |
| 128 | auto& buffer = Buffers[CurrentBuffer]; |
| 129 | auto e = buffer.Get(index); |
| 130 | e->QueryActive = false; |
| 131 | e->Stats.Mix(RenderStatsData::Counter); |
| 132 | context->EndQuery(e->Query); |
| 133 | } |
| 134 | |
| 135 | void ProfilerGPU::BeginFrame() |
| 136 | { |
nothing calls this directly
no test coverage detected