diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-20 08:22:25 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-06 05:37:55 +0200 |
commit | 1fa21fa1927feecc63f0d81824ce4ea203f79fcc (patch) | |
tree | bff3e1dceea5a44d1698d7c88d6c61e3c9e06fee /src/video_core/renderer_opengl/utils.h | |
parent | buffer_cache: Implement a generic buffer cache (diff) | |
download | yuzu-1fa21fa1927feecc63f0d81824ce4ea203f79fcc.tar yuzu-1fa21fa1927feecc63f0d81824ce4ea203f79fcc.tar.gz yuzu-1fa21fa1927feecc63f0d81824ce4ea203f79fcc.tar.bz2 yuzu-1fa21fa1927feecc63f0d81824ce4ea203f79fcc.tar.lz yuzu-1fa21fa1927feecc63f0d81824ce4ea203f79fcc.tar.xz yuzu-1fa21fa1927feecc63f0d81824ce4ea203f79fcc.tar.zst yuzu-1fa21fa1927feecc63f0d81824ce4ea203f79fcc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/utils.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/video_core/renderer_opengl/utils.h b/src/video_core/renderer_opengl/utils.h index 4a752f3b4..d2a3d25d9 100644 --- a/src/video_core/renderer_opengl/utils.h +++ b/src/video_core/renderer_opengl/utils.h @@ -11,20 +11,22 @@ namespace OpenGL { -class BindBuffersRangePushBuffer { +class BindBuffersRangePushBuffer final { public: - BindBuffersRangePushBuffer(GLenum target); + explicit BindBuffersRangePushBuffer(GLenum target); ~BindBuffersRangePushBuffer(); void Setup(GLuint first_); - void Push(GLuint buffer, GLintptr offset, GLsizeiptr size); + void Push(const GLuint* buffer, GLintptr offset, GLsizeiptr size); - void Bind() const; + void Bind(); private: - GLenum target; - GLuint first; + GLenum target{}; + GLuint first{}; + std::vector<const GLuint*> buffer_pointers; + std::vector<GLuint> buffers; std::vector<GLintptr> offsets; std::vector<GLsizeiptr> sizes; |