mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 11:43:47 +01:00
[GPU/Common/D3D11/Directx9/GLES/Vulkan] Using reserve if possible
This commit is contained in:
1 parent
b8748ae9e5
commit
0748ce610f
11 files changed
+17
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user