[D3D12] Profile GPU time via BeginFrame
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user