bool PerfQuery::Initialize() { if (!CreateQueryPool()) { PanicAlert("Failed to create query pool"); return false; } return true; }
bool PerfQuery::Initialize() { if (!CreateQueryPool()) { PanicAlert("Failed to create query pool"); return false; } if (!CreateReadbackBuffer()) { PanicAlert("Failed to create readback buffer"); return false; } g_command_buffer_mgr->AddFenceSignaledCallback( this, std::bind(&PerfQuery::OnFenceSignaled, this, std::placeholders::_1)); return true; }