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_device.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_device.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.h b/src/video_core/renderer_opengl/gl_device.h index 95c2e8d38..9bb0b9148 100644 --- a/src/video_core/renderer_opengl/gl_device.h +++ b/src/video_core/renderer_opengl/gl_device.h @@ -20,6 +20,8 @@ public: [[nodiscard]] std::string GetVendorName() const; + u64 GetCurrentDedicatedVideoMemory() const; + u32 GetMaxUniformBuffers(Shader::Stage stage) const noexcept { return max_uniform_buffers[static_cast<size_t>(stage)]; } @@ -168,6 +170,10 @@ public: return vendor_name == "ATI Technologies Inc."; } + bool CanReportMemoryUsage() const { + return can_report_memory; + } + private: static bool TestVariableAoffi(); static bool TestPreciseBug(); @@ -210,6 +216,7 @@ private: bool need_fastmath_off{}; bool has_cbuf_ftou_bug{}; bool has_bool_ref_bug{}; + bool can_report_memory{}; std::string vendor_name; }; |