mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 01:24:11 +01:00
[dxvk] Let device know that async presentation is enabled
This commit is contained in:
parent
d96c22be05
commit
e6c3f0479d
@ -388,7 +388,18 @@ namespace dxvk {
|
|||||||
const Rc<DxvkCommandList>& commandList,
|
const Rc<DxvkCommandList>& commandList,
|
||||||
VkSemaphore waitSync,
|
VkSemaphore waitSync,
|
||||||
VkSemaphore wakeSync);
|
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
|
* \brief Locks submission queue
|
||||||
*
|
*
|
||||||
|
@ -104,6 +104,14 @@ namespace dxvk {
|
|||||||
return m_lastError.load();
|
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
|
* \brief Submits a command list asynchronously
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user