1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-13 07:08:50 +01:00

[d3d11] Call endFrame at the end of each frame

This commit is contained in:
Philip Rebohle 2022-06-22 00:39:36 +02:00
parent acf70501d2
commit 7e42939a4a
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
3 changed files with 10 additions and 0 deletions

View File

@ -682,6 +682,13 @@ namespace dxvk {
}
void D3D11ImmediateContext::EndFrame() {
EmitCs([] (DxvkContext* ctx) {
ctx->endFrame();
});
}
bool D3D11ImmediateContext::WaitForResource(
const Rc<DxvkResource>& Resource,
uint64_t SequenceNumber,

View File

@ -158,6 +158,8 @@ namespace dxvk {
UINT CopyFlags);
void SynchronizeDevice();
void EndFrame();
bool WaitForResource(
const Rc<DxvkResource>& Resource,

View File

@ -259,6 +259,7 @@ namespace dxvk {
// Flush pending rendering commands before
auto immediateContext = static_cast<D3D11ImmediateContext*>(deviceContext.ptr());
immediateContext->EndFrame();
immediateContext->Flush();
// Bump our frame id.