From 0cc7cb4e9d327d0ca4688603f443756a57ec9216 Mon Sep 17 00:00:00 2001 From: Reg Tiangha Date: Fri, 12 Apr 2024 11:39:04 -0600 Subject: [PATCH] vk_instance.cpp: fix getting driver_id for vulkan device (#53) * vk_instance.cpp: fix getting driver_id for vulkan device * apply clang-format (fixed) Co-authored-by: Malachi --- 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 b4fde6a5c..8f77f25e0 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()) {