// Copyright 2025 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #pragma once #include #include #include "VideoCommon/AbstractTexture.h" #include "VideoCommon/TextureConfig.h" namespace VideoCommon { class TexturePool { public: void Reset(); std::unique_ptr AllocateTexture(const TextureConfig& config); void ReleaseTexture(std::unique_ptr texture); private: std::unordered_multimap> m_cache; }; } // namespace VideoCommon