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

@ -2370,6 +2370,14 @@ std::string VulkanDevice::GetDriverInfo() const
return ret;
}
void VulkanDevice::ExecuteAndWaitForGPUIdle()
{
if (InRenderPass())
EndRenderPass();
SubmitCommandBuffer(true);
}
void VulkanDevice::SetVSyncMode(GPUVSyncMode mode, bool allow_present_throttle)
{
m_allow_present_throttle = allow_present_throttle;