From bf9dfc77ce7eb60a7fc6789cb0976cb4db66462b Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 2 Oct 2024 09:48:13 +0200 Subject: [PATCH] [dxvk] Add context method for WSI synchronization Mostly convenience, but we do want to get rid of Begin/EndRecording at some point. --- src/dxvk/dxvk_context.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_context.h b/src/dxvk/dxvk_context.h index 6660d678..ce936ce1 100644 --- a/src/dxvk/dxvk_context.h +++ b/src/dxvk/dxvk_context.h @@ -77,7 +77,17 @@ namespace dxvk { * \param [out] status Submission feedback */ void flushCommandList(DxvkSubmitStatus* status); - + + /** + * \brief Synchronizes command list with WSI + * + * The next submission can be used to render + * to the swap chain image and present after. + */ + void synchronizeWsi(PresenterSync sync) { + m_cmd->setWsiSemaphores(sync); + } + /** * \brief Begins external rendering *