diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-12-26 17:45:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-26 17:45:25 +0100 |
commit | ad049f13aaa046d82722510e078a78c9b6f20188 (patch) | |
tree | aea9be0bedc0e5fd55860c687c662069c8e6bc26 /src/video_core/renderer_opengl/gl_buffer_cache.h | |
parent | Merge pull request #12394 from liamwhite/per-process-memory (diff) | |
parent | gl_rasterizer: Implement DrawTransformFeedback macro (diff) | |
download | yuzu-ad049f13aaa046d82722510e078a78c9b6f20188.tar yuzu-ad049f13aaa046d82722510e078a78c9b6f20188.tar.gz yuzu-ad049f13aaa046d82722510e078a78c9b6f20188.tar.bz2 yuzu-ad049f13aaa046d82722510e078a78c9b6f20188.tar.lz yuzu-ad049f13aaa046d82722510e078a78c9b6f20188.tar.xz yuzu-ad049f13aaa046d82722510e078a78c9b6f20188.tar.zst yuzu-ad049f13aaa046d82722510e078a78c9b6f20188.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 | 5 |
1 files changed, 5 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 1e8708f59..2c18de166 100644 --- a/src/video_core/renderer_opengl/gl_buffer_cache.h +++ b/src/video_core/renderer_opengl/gl_buffer_cache.h @@ -5,6 +5,7 @@ #include <array> #include <span> +#include <unordered_map> #include "common/common_types.h" #include "video_core/buffer_cache/buffer_cache_base.h" @@ -121,6 +122,9 @@ public: void BindImageBuffer(Buffer& buffer, u32 offset, u32 size, VideoCore::Surface::PixelFormat format); + void BindTransformFeedbackObject(GPUVAddr tfb_object_addr); + GLuint GetTransformFeedbackObject(GPUVAddr tfb_object_addr); + u64 GetDeviceMemoryUsage() const; void BindFastUniformBuffer(size_t stage, u32 binding_index, u32 size) { @@ -233,6 +237,7 @@ private: u32 index_buffer_offset = 0; u64 device_access_memory; + std::unordered_map<GPUVAddr, OGLTransformFeedback> tfb_objects; }; struct BufferCacheParams { |