[D3D12] Profile GPU time via BeginFrame

This commit is contained in:
Triang3l 2018-08-27 12:54:15 +03:00
parent 6d48b856b9
commit 629a8e0e25
1 changed files with 4 additions and 0 deletions

View File

@ -1067,6 +1067,10 @@ bool D3D12CommandProcessor::BeginFrame() {
return false;
}
#if FINE_GRAINED_DRAW_SCOPES
SCOPE_profile_cpu_f("gpu");
#endif // FINE_GRAINED_DRAW_SCOPES
auto context = GetD3D12Context();
context->BeginSwap();
current_queue_frame_ = context->GetCurrentQueueFrame();