summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_device.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2022-01-18 18:05:44 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-03-25 03:05:56 +0100
commit9872d4bc4f78fea478e7db4d5a04208cb8a871fa (patch)
treed61944d1a7a5e03b5d00da43a92acee848f7bd4e /src/video_core/renderer_opengl/gl_device.h
parentGarbage Collection: Final tuning. (diff)
downloadyuzu-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 'src/video_core/renderer_opengl/gl_device.h')
-rw-r--r--src/video_core/renderer_opengl/gl_device.h7
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;
};