mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Changes to hi-res textures. Textures now load correctly when loading/saving a savestate, and can be toggled on and off in game.
Changed non-hi-res textures to use MurmurHash3, which has better performance that the previous hash. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7080 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
20e2046fe1
commit
888cd78724
8 changed files with 376 additions and 131 deletions
|
@ -7,6 +7,7 @@
|
|||
#include "VideoCommon.h"
|
||||
#include "TextureDecoder.h"
|
||||
#include "BPMemory.h"
|
||||
#include "Thread.h"
|
||||
|
||||
#include "CommonTypes.h"
|
||||
|
||||
|
@ -71,6 +72,8 @@ public:
|
|||
|
||||
virtual ~TextureCache(); // needs virtual for DX11 dtor
|
||||
|
||||
static void Init();
|
||||
static void Shutdown();
|
||||
static void Cleanup();
|
||||
|
||||
static void Invalidate(bool shutdown);
|
||||
|
@ -88,6 +91,8 @@ public:
|
|||
static void CopyRenderTargetToTexture(u32 address, bool bFromZBuffer, bool bIsIntensityFmt,
|
||||
u32 copyfmt, bool bScaleByHalf, const EFBRectangle &source_rect);
|
||||
|
||||
static Common::CriticalSection texMutex;
|
||||
|
||||
protected:
|
||||
TextureCache();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue