[Vulkan] Scavenge Profiling
This commit is contained in:
parent
894bbf9e26
commit
2e3115660f
|
@ -754,6 +754,8 @@ void BufferCache::InvalidateCache() { transient_cache_.clear(); }
|
|||
void BufferCache::ClearCache() { transient_cache_.clear(); }
|
||||
|
||||
void BufferCache::Scavenge() {
|
||||
SCOPE_profile_cpu_f("gpu");
|
||||
|
||||
transient_cache_.clear();
|
||||
transient_buffer_->Scavenge();
|
||||
|
||||
|
|
|
@ -1512,6 +1512,8 @@ void TextureCache::ClearCache() {
|
|||
}
|
||||
|
||||
void TextureCache::Scavenge() {
|
||||
SCOPE_profile_cpu_f("gpu");
|
||||
|
||||
// Close any open descriptor pool batches
|
||||
if (descriptor_pool_->has_open_batch()) {
|
||||
descriptor_pool_->EndBatch();
|
||||
|
|
Loading…
Reference in New Issue