diff options
| author | bunnei <bunneidev@gmail.com> | 2019-11-24 19:36:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-24 19:36:30 -0500 |
| commit | b03242067d9ba9e3ad9804d2ccfe596f45da6ba6 (patch) | |
| tree | 386c8566d385869702b34ddb00ff58f7e8e275bf /src/video_core/renderer_opengl/utils.h | |
| parent | b7031b2b9d6c886b0d5c39994e3b978af8370ea6 (diff) | |
| parent | dc2e83fa31a7bd3a7e1f1deb6f41cdb62be5f46e (diff) | |
Merge pull request #3098 from ReinUsesLisp/shader-invalidations
gl_shader_cache: Miscellaneous changes to shaders
Diffstat (limited to 'src/video_core/renderer_opengl/utils.h')
| -rw-r--r-- | src/video_core/renderer_opengl/utils.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/video_core/renderer_opengl/utils.h b/src/video_core/renderer_opengl/utils.h index 6c2b45546..d56153fe7 100644 --- a/src/video_core/renderer_opengl/utils.h +++ b/src/video_core/renderer_opengl/utils.h @@ -43,20 +43,22 @@ public: explicit BindBuffersRangePushBuffer(GLenum target); ~BindBuffersRangePushBuffer(); - void Setup(GLuint first_); + void Setup(); - void Push(const GLuint* buffer, GLintptr offset, GLsizeiptr size); + void Push(GLuint binding, const GLuint* buffer, GLintptr offset, GLsizeiptr size); void Bind(); private: - GLenum target{}; - GLuint first{}; - std::vector<const GLuint*> buffer_pointers; + struct Entry { + GLuint binding; + const GLuint* buffer; + GLintptr offset; + GLsizeiptr size; + }; - std::vector<GLuint> buffers; - std::vector<GLintptr> offsets; - std::vector<GLsizeiptr> sizes; + GLenum target; + std::vector<Entry> entries; }; void LabelGLObject(GLenum identifier, GLuint handle, VAddr addr, std::string_view extra_info = {}); |
