diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-15 00:58:16 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-06 05:37:55 +0200 |
commit | 2bcae41a73cf2f2c6b21a3ab298eddd0855a0245 (patch) | |
tree | 3a7e53d3072659fe2b994cd99d825ead458c35b7 /src/video_core/renderer_opengl/gl_buffer_cache.h | |
parent | gl_device: Query SSBO alignment (diff) | |
download | yuzu-2bcae41a73cf2f2c6b21a3ab298eddd0855a0245.tar yuzu-2bcae41a73cf2f2c6b21a3ab298eddd0855a0245.tar.gz yuzu-2bcae41a73cf2f2c6b21a3ab298eddd0855a0245.tar.bz2 yuzu-2bcae41a73cf2f2c6b21a3ab298eddd0855a0245.tar.lz yuzu-2bcae41a73cf2f2c6b21a3ab298eddd0855a0245.tar.xz yuzu-2bcae41a73cf2f2c6b21a3ab298eddd0855a0245.tar.zst yuzu-2bcae41a73cf2f2c6b21a3ab298eddd0855a0245.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_buffer_cache.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_buffer_cache.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.h b/src/video_core/renderer_opengl/gl_buffer_cache.h index 4267a5067..19d643e41 100644 --- a/src/video_core/renderer_opengl/gl_buffer_cache.h +++ b/src/video_core/renderer_opengl/gl_buffer_cache.h @@ -17,6 +17,10 @@ #include "video_core/renderer_opengl/gl_resource_manager.h" #include "video_core/renderer_opengl/gl_stream_buffer.h" +namespace Core { +class System; +} + namespace OpenGL { class RasterizerOpenGL; @@ -79,7 +83,7 @@ class OGLBufferCache final : public RasterizerCache<std::shared_ptr<CachedBuffer using BufferInfo = std::pair<GLuint, GLintptr>; public: - explicit OGLBufferCache(RasterizerOpenGL& rasterizer, std::size_t size); + explicit OGLBufferCache(RasterizerOpenGL& rasterizer, Core::System& system, std::size_t size); ~OGLBufferCache(); void Unregister(const std::shared_ptr<CachedBufferEntry>& entry) override; @@ -116,6 +120,8 @@ private: void AlignBuffer(std::size_t alignment); + Core::System& system; + u8* buffer_ptr = nullptr; GLintptr buffer_offset = 0; GLintptr buffer_offset_base = 0; |