1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-12 04:08:52 +01:00

[dxvk] Add context method for WSI synchronization

Mostly convenience, but we do want to get rid of Begin/EndRecording
at some point.
This commit is contained in:
Philip Rebohle 2024-10-02 09:48:13 +02:00 committed by Philip Rebohle
parent 63b200f08d
commit bf9dfc77ce

View File

@ -77,7 +77,17 @@ namespace dxvk {
* \param [out] status Submission feedback * \param [out] status Submission feedback
*/ */
void flushCommandList(DxvkSubmitStatus* status); 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 * \brief Begins external rendering
* *