diff --git a/src/dxvk/dxvk_device.h b/src/dxvk/dxvk_device.h index a692d13c..4154824f 100644 --- a/src/dxvk/dxvk_device.h +++ b/src/dxvk/dxvk_device.h @@ -388,7 +388,18 @@ namespace dxvk { const Rc& 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 * diff --git a/src/dxvk/dxvk_queue.h b/src/dxvk/dxvk_queue.h index 9387510e..8e7b7b16 100644 --- a/src/dxvk/dxvk_queue.h +++ b/src/dxvk/dxvk_queue.h @@ -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 *