[GPU/Common/D3D11/Directx9/GLES/Vulkan] Using reserve if possible

This commit is contained in:
Herman Semenov committed 2023-12-15 14:08:22 +03:00
1 parent b8748ae9e5
commit 0748ce610f
11 files changed
+17

No files matched your search

+1
View File
@@ -187,6 +187,7 @@ void SamplerCache::DeviceRestore(VulkanContext *vulkan) {
std::vector<std::string> SamplerCache::DebugGetSamplerIDs() const {
std::vector<std::string> ids;
ids.reserve(cache_.size());
cache_.Iterate([&](const SamplerCacheKey &id, VkSampler sampler) {
std::string idstr;
id.ToString(&idstr);