mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 18:01:56 +00:00
Add in UBOs, doesn't work yet. Still debugging here.
This commit is contained in:
parent
9119399547
commit
8e5bb59cb6
12 changed files with 138 additions and 49 deletions
|
@ -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);
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue