GPUDevice: Add ExecuteAndWaitForGPUIdle()

This commit is contained in:
Stenzek
2024-07-04 21:54:19 +10:00
parent 9fcc98a60a
commit 3749b812a3
11 changed files with 46 additions and 0 deletions

View File

@ -638,6 +638,14 @@ void D3D12Device::WaitForGPUIdle()
}
}
void D3D12Device::ExecuteAndWaitForGPUIdle()
{
if (InRenderPass())
EndRenderPass();
SubmitCommandList(true);
}
bool D3D12Device::CreateTimestampQuery()
{
constexpr u32 QUERY_COUNT = NUM_TIMESTAMP_QUERIES_PER_CMDLIST * NUM_COMMAND_LISTS;