1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-21 22:54:16 +01:00

[dxvk] Add method to retrieve current frame number

This commit is contained in:
Philip Rebohle 2018-09-10 18:05:33 +02:00
parent 5cc2c219dd
commit c7ddaea5a6
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 11 additions and 0 deletions

View File

@ -209,6 +209,11 @@ namespace dxvk {
}
uint32_t DxvkDevice::getCurrentFrameId() const {
return m_statCounters.getCtr(DxvkStatCounter::QueuePresentCount);
}
void DxvkDevice::initResources() {
m_unboundResources.clearResources(this);
}

View File

@ -294,6 +294,12 @@ namespace dxvk {
*/
DxvkStatCounters getStatCounters();
/**
* \brief Retreves current frame ID
* \returns Current frame ID
*/
uint32_t getCurrentFrameId() const;
/**
* \brief Initializes dummy resources
*