mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-12-25 17:21:55 +01:00
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 <malachicapela@gmail.com>
This commit is contained in:
parent
563be55156
commit
0cc7cb4e9d
@ -406,9 +406,15 @@ bool Instance::CreateDevice() {
|
|||||||
vk::PhysicalDevicePipelineCreationCacheControlFeaturesEXT,
|
vk::PhysicalDevicePipelineCreationCacheControlFeaturesEXT,
|
||||||
vk::PhysicalDeviceFragmentShaderBarycentricFeaturesKHR>();
|
vk::PhysicalDeviceFragmentShaderBarycentricFeaturesKHR>();
|
||||||
const vk::StructureChain properties_chain =
|
const vk::StructureChain properties_chain =
|
||||||
physical_device.getProperties2<vk::PhysicalDeviceProperties2,
|
physical_device
|
||||||
|
.getProperties2<vk::PhysicalDeviceProperties2, vk::PhysicalDeviceDriverProperties,
|
||||||
vk::PhysicalDevicePortabilitySubsetPropertiesKHR,
|
vk::PhysicalDevicePortabilitySubsetPropertiesKHR,
|
||||||
vk::PhysicalDeviceExternalMemoryHostPropertiesEXT>();
|
vk::PhysicalDeviceExternalMemoryHostPropertiesEXT>();
|
||||||
|
const vk::PhysicalDeviceDriverProperties driver =
|
||||||
|
properties_chain.get<vk::PhysicalDeviceDriverProperties>();
|
||||||
|
|
||||||
|
driver_id = driver.driverID;
|
||||||
|
vendor_name = driver.driverName.data();
|
||||||
|
|
||||||
features = feature_chain.get().features;
|
features = feature_chain.get().features;
|
||||||
if (available_extensions.empty()) {
|
if (available_extensions.empty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user