mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
CustomTexture: prefetch all available textures
This commit is contained in:
parent
7e6ec5fa86
commit
242f7d964d
8 changed files with 170 additions and 14 deletions
|
@ -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() {}
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue