Write all shaders to disk on emulator stop instead of constantly. Also change pair from u64 to u32.

This commit is contained in:
Ryan Houdek
2011-12-24 02:19:30 -06:00
committed by Sonicadvance1
parent 4eb227bd4c
commit 5c486587a6
2 changed files with 10 additions and 8 deletions

View File

@ -75,6 +75,7 @@ struct PROGRAMSHADER
PROGRAMSHADER() : glprogid(0), vsid(0), psid(0), binaryLength(0){}
GLuint glprogid; // opengl program id
GLuint vsid, psid;
PROGRAMUID uid;
GLint UniformLocations[NUM_UNIFORMS];
GLint binaryLength;
u8 *Data()
@ -152,11 +153,11 @@ class ProgramShaderCache
}
};
typedef std::map<std::pair<u64, u64>, PCacheEntry> PCache;
typedef std::map<std::pair<u32, u32>, PCacheEntry> PCache;
static PCache pshaders;
static GLuint CurrentFShader, CurrentVShader, CurrentProgram;
static std::pair<u64, u64> CurrentShaderProgram;
static std::pair<u32, u32> CurrentShaderProgram;
static GLuint s_ps_vs_ubo;
static GLintptr s_vs_data_offset;