mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Add in UBOs, doesn't work yet. Still debugging here.
This commit is contained in:
@ -94,11 +94,17 @@ class ProgramShaderCache
|
||||
static PCache pshaders;
|
||||
static GLuint CurrentFShader, CurrentVShader, CurrentProgram;
|
||||
static std::pair<u64, u64> CurrentShaderProgram;
|
||||
|
||||
// For UBOS
|
||||
static GLuint UBOBuffers[2]; // PS is 0, VS is 1
|
||||
public:
|
||||
static PROGRAMSHADER GetShaderProgram();
|
||||
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 Init(void);
|
||||
static void Shutdown(void);
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user