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

@ -466,6 +466,11 @@ std::string D3D11Device::GetDriverInfo() const
return ret;
}
void D3D11Device::ExecuteAndWaitForGPUIdle()
{
m_context->Flush();
}
bool D3D11Device::CreateBuffers()
{
if (!m_vertex_buffer.Create(D3D11_BIND_VERTEX_BUFFER, VERTEX_BUFFER_SIZE, VERTEX_BUFFER_SIZE) ||