mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
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.
15 lines
318 B
C++
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();
|
|
}
|
|
|
|
} |