1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00
OpenDX/src/dxvk/dxvk_lifetime.cpp
Philip Rebohle 63183141bc
[dxvk] Implement read/write tracking in lifetime tracker
This way we will be able to more accurately determine how a
resource is going to be used by the GPU, and we can also cut
unnecessary atomic operations for non-resource objects.
2019-09-20 01:44:01 +02:00

15 lines
318 B
C++

#include "dxvk_lifetime.h"
namespace dxvk {
DxvkLifetimeTracker:: DxvkLifetimeTracker() { }
DxvkLifetimeTracker::~DxvkLifetimeTracker() { }
void DxvkLifetimeTracker::reset() {
for (const auto& resource : m_resources)
resource.first->release(resource.second);
m_resources.clear();
}
}