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

[dxvk] Let device know that async presentation is enabled

This commit is contained in:
Philip Rebohle 2019-11-02 16:08:51 +01:00
parent d96c22be05
commit e6c3f0479d
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 20 additions and 1 deletions

View File

@ -388,7 +388,18 @@ namespace dxvk {
const Rc<DxvkCommandList>& commandList,
VkSemaphore waitSync,
VkSemaphore wakeSync);
/**
* \brief Checks for async presentation support
*
* If this is \c false, synchronize with the
* present call immediately after submitting it.
* \returns \c true if async present is enabled
*/
bool hasAsyncPresent() const {
return m_submissionQueue.hasAsyncPresent();
}
/**
* \brief Locks submission queue
*

View File

@ -104,6 +104,14 @@ namespace dxvk {
return m_lastError.load();
}
/**
* \brief Checks whether asynchronous presentation is supported
* \returns \c true if presentation is asynchronous
*/
bool hasAsyncPresent() const {
return m_asyncPresent;
}
/**
* \brief Submits a command list asynchronously
*