1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 22:24:15 +01:00

[d3d11] Add EmitCs method to D3D11DeviceContext

Subsequently, all calls into the DXVK context will be
replaced by calls to the EmitCs method with a lambda.
This commit is contained in:
Philip Rebohle 2018-01-20 15:29:10 +01:00
parent 0789c5f10d
commit 62a43cbdbe
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 8 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#pragma once
#include "../dxvk/dxvk_adapter.h"
#include "../dxvk/dxvk_cs.h"
#include "../dxvk/dxvk_device.h"
#include "d3d11_context_state.h"
@ -564,6 +565,12 @@ namespace dxvk {
Rc<DxvkSampler> CreateDefaultSampler();
template<typename Cmd>
void EmitCs(Cmd&& command) {
// TODO push to CS chunk
command.execute(m_context.ptr());
}
};
}

View File

@ -200,6 +200,7 @@ namespace dxvk {
void D3D11ImmediateContext::Synchronize() {
// TODO sync with CS thread
m_device->waitForIdle();
}