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:
parent
acf70501d2
commit
7e42939a4a
@ -682,6 +682,13 @@ namespace dxvk {
|
||||
}
|
||||
|
||||
|
||||
void D3D11ImmediateContext::EndFrame() {
|
||||
EmitCs([] (DxvkContext* ctx) {
|
||||
ctx->endFrame();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
bool D3D11ImmediateContext::WaitForResource(
|
||||
const Rc<DxvkResource>& Resource,
|
||||
uint64_t SequenceNumber,
|
||||
|
@ -158,6 +158,8 @@ namespace dxvk {
|
||||
UINT CopyFlags);
|
||||
|
||||
void SynchronizeDevice();
|
||||
|
||||
void EndFrame();
|
||||
|
||||
bool WaitForResource(
|
||||
const Rc<DxvkResource>& Resource,
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user