From e26ceabfd1d4f3d15063164f1a2d48cea5c138c0 Mon Sep 17 00:00:00 2001 From: Malachi Date: Wed, 10 Apr 2024 16:05:35 -0400 Subject: [PATCH] vk_instance.cpp: fix getting driver_id for vulkan device (#67) * vk_instance.cpp: fix getting driver_id for vulkan device * apply clang-format (fixed) --- src/video_core/renderer_vulkan/vk_instance.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/video_core/renderer_vulkan/vk_instance.cpp b/src/video_core/renderer_vulkan/vk_instance.cpp index b4fde6a5c3..8f77f25e01 100644 --- a/src/video_core/renderer_vulkan/vk_instance.cpp +++ b/src/video_core/renderer_vulkan/vk_instance.cpp @@ -406,9 +406,15 @@ bool Instance::CreateDevice() { vk::PhysicalDevicePipelineCreationCacheControlFeaturesEXT, vk::PhysicalDeviceFragmentShaderBarycentricFeaturesKHR>(); const vk::StructureChain properties_chain = - physical_device.getProperties2(); + physical_device + .getProperties2(); + const vk::PhysicalDeviceDriverProperties driver = + properties_chain.get(); + + driver_id = driver.driverID; + vendor_name = driver.driverName.data(); features = feature_chain.get().features; if (available_extensions.empty()) {