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:
parent
5cc2c219dd
commit
c7ddaea5a6
@ -209,6 +209,11 @@ namespace dxvk {
|
||||
}
|
||||
|
||||
|
||||
uint32_t DxvkDevice::getCurrentFrameId() const {
|
||||
return m_statCounters.getCtr(DxvkStatCounter::QueuePresentCount);
|
||||
}
|
||||
|
||||
|
||||
void DxvkDevice::initResources() {
|
||||
m_unboundResources.clearResources(this);
|
||||
}
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user