diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-01-18 18:05:44 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-03-25 03:05:56 +0100 |
commit | 9872d4bc4f78fea478e7db4d5a04208cb8a871fa (patch) | |
tree | d61944d1a7a5e03b5d00da43a92acee848f7bd4e /src/video_core/renderer_opengl/gl_buffer_cache.h | |
parent | Garbage Collection: Final tuning. (diff) | |
download | yuzu-9872d4bc4f78fea478e7db4d5a04208cb8a871fa.tar yuzu-9872d4bc4f78fea478e7db4d5a04208cb8a871fa.tar.gz yuzu-9872d4bc4f78fea478e7db4d5a04208cb8a871fa.tar.bz2 yuzu-9872d4bc4f78fea478e7db4d5a04208cb8a871fa.tar.lz yuzu-9872d4bc4f78fea478e7db4d5a04208cb8a871fa.tar.xz yuzu-9872d4bc4f78fea478e7db4d5a04208cb8a871fa.tar.zst yuzu-9872d4bc4f78fea478e7db4d5a04208cb8a871fa.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_buffer_cache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.h b/src/video_core/renderer_opengl/gl_buffer_cache.h index 86a265fee..a8699f28c 100644 --- a/src/video_core/renderer_opengl/gl_buffer_cache.h +++ b/src/video_core/renderer_opengl/gl_buffer_cache.h @@ -89,6 +89,8 @@ public: void BindImageBuffer(Buffer& buffer, u32 offset, u32 size, VideoCore::Surface::PixelFormat format); + u64 GetDeviceMemoryUsage() const; + void BindFastUniformBuffer(size_t stage, u32 binding_index, u32 size) { const GLuint handle = fast_uniforms[stage][binding_index].handle; const GLsizeiptr gl_size = static_cast<GLsizeiptr>(size); @@ -155,10 +157,8 @@ public: return device_access_memory; } - u64 GetDeviceMemoryUsage() const; - bool CanReportMemoryUsage() const { - return GLAD_GL_NVX_gpu_memory_info; + return device.CanReportMemoryUsage(); } private: |