Core: Purge resources.cpp

Save around 64KB in binary size.
This commit is contained in:
Stenzek
2024-08-04 14:13:13 +10:00
parent 5b590d434b
commit 143acca03b
8 changed files with 18 additions and 1882 deletions

View File

@ -18,6 +18,7 @@
#include <utility>
#include <vector>
class RGBA8Image;
class GPUTexture;
class SmallStringBase;
@ -128,6 +129,7 @@ void Shutdown();
/// Texture cache.
const std::shared_ptr<GPUTexture>& GetPlaceholderTexture();
std::unique_ptr<GPUTexture> CreateTextureFromImage(const RGBA8Image& image);
std::shared_ptr<GPUTexture> LoadTexture(std::string_view path);
GPUTexture* GetCachedTexture(std::string_view name);
GPUTexture* GetCachedTextureAsync(std::string_view name);