diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-05-01 17:08:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 17:08:02 +0200 |
commit | 47938541c25528d1122e15b87dc0113bbbe94d13 (patch) | |
tree | 03e528a1340c6b6d3991a9826962c7763077c6aa /src/video_core/renderer_opengl | |
parent | Update translations (2023-05-01) (#10129) (diff) | |
parent | BufferCache: Fixes and address feedback (diff) | |
download | yuzu-47938541c25528d1122e15b87dc0113bbbe94d13.tar yuzu-47938541c25528d1122e15b87dc0113bbbe94d13.tar.gz yuzu-47938541c25528d1122e15b87dc0113bbbe94d13.tar.bz2 yuzu-47938541c25528d1122e15b87dc0113bbbe94d13.tar.lz yuzu-47938541c25528d1122e15b87dc0113bbbe94d13.tar.xz yuzu-47938541c25528d1122e15b87dc0113bbbe94d13.tar.zst yuzu-47938541c25528d1122e15b87dc0113bbbe94d13.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_buffer_cache.h | 4 | ||||
-rw-r--r-- | src/video_core/renderer_opengl/gl_buffer_cache_base.cpp | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.h b/src/video_core/renderer_opengl/gl_buffer_cache.h index a8c3f8b67..18d3c3ac0 100644 --- a/src/video_core/renderer_opengl/gl_buffer_cache.h +++ b/src/video_core/renderer_opengl/gl_buffer_cache.h @@ -8,6 +8,7 @@ #include "common/common_types.h" #include "video_core/buffer_cache/buffer_cache.h" +#include "video_core/buffer_cache/memory_tracker_base.h" #include "video_core/rasterizer_interface.h" #include "video_core/renderer_opengl/gl_device.h" #include "video_core/renderer_opengl/gl_resource_manager.h" @@ -200,6 +201,8 @@ private: struct BufferCacheParams { using Runtime = OpenGL::BufferCacheRuntime; using Buffer = OpenGL::Buffer; + using Async_Buffer = u32; + using MemoryTracker = VideoCommon::MemoryTrackerBase<VideoCore::RasterizerInterface>; static constexpr bool IS_OPENGL = true; static constexpr bool HAS_PERSISTENT_UNIFORM_BUFFER_BINDINGS = true; @@ -208,6 +211,7 @@ struct BufferCacheParams { static constexpr bool NEEDS_BIND_STORAGE_INDEX = true; static constexpr bool USE_MEMORY_MAPS = false; static constexpr bool SEPARATE_IMAGE_BUFFER_BINDINGS = true; + static constexpr bool IMPLEMENTS_ASYNC_DOWNLOADS = false; }; using BufferCache = VideoCommon::BufferCache<BufferCacheParams>; diff --git a/src/video_core/renderer_opengl/gl_buffer_cache_base.cpp b/src/video_core/renderer_opengl/gl_buffer_cache_base.cpp new file mode 100644 index 000000000..f15ae8e25 --- /dev/null +++ b/src/video_core/renderer_opengl/gl_buffer_cache_base.cpp @@ -0,0 +1,9 @@ +// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include "video_core/buffer_cache/buffer_cache.h" +#include "video_core/renderer_opengl/gl_buffer_cache.h" + +namespace VideoCommon { +template class VideoCommon::BufferCache<OpenGL::BufferCacheParams>; +} |