MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / EndAllQueries

Method EndAllQueries

Source/Engine/Profiler/ProfilerGPU.cpp:32–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void ProfilerGPU::EventBuffer::EndAllQueries()
33{
34 auto context = GPUDevice::Instance->GetMainContext();
35 auto queries = _data.Get();
36 for (int32 i = 0; i < _data.Count(); i++)
37 {
38 auto& e = queries[i];
39 if (e.QueryActive)
40 {
41 e.QueryActive = false;
42 context->EndQuery(e.Query);
43 }
44 }
45}
46
47void ProfilerGPU::EventBuffer::TryResolve()
48{

Callers 1

OnPresentMethod · 0.80

Calls 4

GetMainContextMethod · 0.45
GetMethod · 0.45
CountMethod · 0.45
EndQueryMethod · 0.45

Tested by

no test coverage detected