[D3D12] Profile GPU time via BeginFrame
This commit is contained in:
parent
6d48b856b9
commit
629a8e0e25
|
@ -1067,6 +1067,10 @@ bool D3D12CommandProcessor::BeginFrame() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if FINE_GRAINED_DRAW_SCOPES
|
||||||
|
SCOPE_profile_cpu_f("gpu");
|
||||||
|
#endif // FINE_GRAINED_DRAW_SCOPES
|
||||||
|
|
||||||
auto context = GetD3D12Context();
|
auto context = GetD3D12Context();
|
||||||
context->BeginSwap();
|
context->BeginSwap();
|
||||||
current_queue_frame_ = context->GetCurrentQueueFrame();
|
current_queue_frame_ = context->GetCurrentQueueFrame();
|
||||||
|
|
Loading…
Reference in New Issue