diff options
author | Lioncash <mathew1800@gmail.com> | 2018-11-08 12:08:00 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-11-08 12:16:38 +0100 |
commit | 9046f764bfb0097b827c585514f284124a61effd (patch) | |
tree | 4c287a55151114f70b2104e4df1e90af1d52073f /src/video_core/renderer_opengl/gl_buffer_cache.h | |
parent | gl_resource_manager: Amend clang-format discrepancies (diff) | |
download | yuzu-9046f764bfb0097b827c585514f284124a61effd.tar yuzu-9046f764bfb0097b827c585514f284124a61effd.tar.gz yuzu-9046f764bfb0097b827c585514f284124a61effd.tar.bz2 yuzu-9046f764bfb0097b827c585514f284124a61effd.tar.lz yuzu-9046f764bfb0097b827c585514f284124a61effd.tar.xz yuzu-9046f764bfb0097b827c585514f284124a61effd.tar.zst yuzu-9046f764bfb0097b827c585514f284124a61effd.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 | 4 |
1 files changed, 3 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 be29dc8be..91fca3f6c 100644 --- a/src/video_core/renderer_opengl/gl_buffer_cache.h +++ b/src/video_core/renderer_opengl/gl_buffer_cache.h @@ -15,6 +15,8 @@ namespace OpenGL { +class RasterizerOpenGL; + struct CachedBufferEntry final : public RasterizerCacheObject { VAddr GetAddr() const override { return addr; @@ -35,7 +37,7 @@ struct CachedBufferEntry final : public RasterizerCacheObject { class OGLBufferCache final : public RasterizerCache<std::shared_ptr<CachedBufferEntry>> { public: - explicit OGLBufferCache(std::size_t size); + explicit OGLBufferCache(RasterizerOpenGL& rasterizer, std::size_t size); /// Uploads data from a guest GPU address. Returns host's buffer offset where it's been /// allocated. |