mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
CustomTexture: prefetch all available textures
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include "VideoCommon/TextureDecoder.h"
|
||||
@ -12,9 +13,11 @@
|
||||
class HiresTexture
|
||||
{
|
||||
public:
|
||||
static void Init(const std::string& gameCode);
|
||||
static void Init();
|
||||
static void Update();
|
||||
static void Shutdown();
|
||||
|
||||
static HiresTexture* Search(
|
||||
static std::shared_ptr<HiresTexture> Search(
|
||||
const u8* texture, size_t texture_size,
|
||||
const u8* tlut, size_t tlut_size,
|
||||
u32 width, u32 height,
|
||||
@ -40,6 +43,9 @@ public:
|
||||
std::vector<Level> m_levels;
|
||||
|
||||
private:
|
||||
static HiresTexture* Load(const std::string& base_filename, u32 width, u32 height);
|
||||
static void Prefetch();
|
||||
|
||||
HiresTexture() {}
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user