mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-01 07:24:12 +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:
parent
0789c5f10d
commit
62a43cbdbe
@ -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());
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -200,6 +200,7 @@ namespace dxvk {
|
||||
|
||||
|
||||
void D3D11ImmediateContext::Synchronize() {
|
||||
// TODO sync with CS thread
|
||||
m_device->waitForIdle();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user