summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-11-20 06:21:29 +0100
committerGitHub <noreply@github.com>2022-11-20 06:21:29 +0100
commit69c92b8156ac6458883b78a680096cfb0cda2708 (patch)
treebdc5400a967121a6c7c9eab92022492429ccfd8a
parentMerge pull request #9274 from Morph1984/issue-forms (diff)
parentUpdate renderer_vulkan.cpp (diff)
downloadyuzu-69c92b8156ac6458883b78a680096cfb0cda2708.tar
yuzu-69c92b8156ac6458883b78a680096cfb0cda2708.tar.gz
yuzu-69c92b8156ac6458883b78a680096cfb0cda2708.tar.bz2
yuzu-69c92b8156ac6458883b78a680096cfb0cda2708.tar.lz
yuzu-69c92b8156ac6458883b78a680096cfb0cda2708.tar.xz
yuzu-69c92b8156ac6458883b78a680096cfb0cda2708.tar.zst
yuzu-69c92b8156ac6458883b78a680096cfb0cda2708.zip
-rw-r--r--src/video_core/renderer_vulkan/renderer_vulkan.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/renderer_vulkan.cpp b/src/video_core/renderer_vulkan/renderer_vulkan.cpp
index d8131232a..c2a95200b 100644
--- a/src/video_core/renderer_vulkan/renderer_vulkan.cpp
+++ b/src/video_core/renderer_vulkan/renderer_vulkan.cpp
@@ -172,6 +172,7 @@ void RendererVulkan::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) {
}
void RendererVulkan::Report() const {
+ using namespace Common::Literals;
const std::string vendor_name{device.GetVendorName()};
const std::string model_name{device.GetModelName()};
const std::string driver_version = GetDriverVersion(device);
@@ -181,9 +182,12 @@ void RendererVulkan::Report() const {
const std::string extensions = BuildCommaSeparatedExtensions(device.GetAvailableExtensions());
+ const auto available_vram = static_cast<f64>(device.GetDeviceLocalMemory()) / f64{1_GiB};
+
LOG_INFO(Render_Vulkan, "Driver: {}", driver_name);
LOG_INFO(Render_Vulkan, "Device: {}", model_name);
LOG_INFO(Render_Vulkan, "Vulkan: {}", api_version);
+ LOG_INFO(Render_Vulkan, "Available VRAM: {:.2f} GiB", available_vram);
static constexpr auto field = Common::Telemetry::FieldType::UserSystem;
telemetry_session.AddField(field, "GPU_Vendor", vendor_name);