mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
make use of glMapBuffer to set ubo data
This commit is contained in:
parent
16b58a8825
commit
5ae1f674f5
3 changed files with 55 additions and 7 deletions
|
@ -96,6 +96,7 @@ class ProgramShaderCache
|
|||
static std::pair<u64, u64> CurrentShaderProgram;
|
||||
|
||||
static GLuint s_ps_ubo, s_vs_ubo;
|
||||
static float *s_ps_mapped_data, *s_vs_mapped_data;
|
||||
public:
|
||||
static PROGRAMSHADER GetShaderProgram(void);
|
||||
static GLint GetAttr(int num);
|
||||
|
@ -104,6 +105,8 @@ public:
|
|||
|
||||
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 FlushConstants();
|
||||
|
||||
static void Init(void);
|
||||
static void Shutdown(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue