mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
have separate variables/functions for VS/PS ubo stuff, array was confusing.
This commit is contained in:

committed by
Sonicadvance1

parent
a809feae1a
commit
73a29bf6a1
@ -95,14 +95,15 @@ class ProgramShaderCache
|
||||
static GLuint CurrentFShader, CurrentVShader, CurrentProgram;
|
||||
static std::pair<u64, u64> CurrentShaderProgram;
|
||||
|
||||
// For UBOS
|
||||
static GLuint UBOBuffers[2]; // PS is 0, VS is 1
|
||||
static GLuint s_ps_ubo, s_vs_ubo;
|
||||
public:
|
||||
static PROGRAMSHADER GetShaderProgram(void);
|
||||
static GLint GetAttr(int num);
|
||||
static void SetBothShaders(GLuint PS, GLuint VS);
|
||||
static GLuint GetCurrentProgram(void);
|
||||
static void SetUniformObjects(int Buffer, unsigned int offset, const float *f, unsigned int count = 1);
|
||||
|
||||
static void SetMultiPSConstant4fv(unsigned int offset, const float *f, unsigned int count);
|
||||
static void SetMultiVSConstant4fv(unsigned int offset, const float *f, unsigned int count);
|
||||
|
||||
static void Init(void);
|
||||
static void Shutdown(void);
|
||||
|
Reference in New Issue
Block a user