diff --git a/src/d3d11/d3d11_context.h b/src/d3d11/d3d11_context.h index 81343925..aad51309 100644 --- a/src/d3d11/d3d11_context.h +++ b/src/d3d11/d3d11_context.h @@ -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 CreateDefaultSampler(); + template + void EmitCs(Cmd&& command) { + // TODO push to CS chunk + command.execute(m_context.ptr()); + } + }; } diff --git a/src/d3d11/d3d11_context_imm.cpp b/src/d3d11/d3d11_context_imm.cpp index a8f8884f..ffc62d64 100644 --- a/src/d3d11/d3d11_context_imm.cpp +++ b/src/d3d11/d3d11_context_imm.cpp @@ -200,6 +200,7 @@ namespace dxvk { void D3D11ImmediateContext::Synchronize() { + // TODO sync with CS thread m_device->waitForIdle(); }