Browse Source

Vk: minor cleanup.

pull/491/head
Vladimír Vondruš 6 years ago
parent
commit
eb42342d16
  1. 8
      src/Magnum/Vk/Device.cpp

8
src/Magnum/Vk/Device.cpp

@ -115,12 +115,14 @@ DeviceCreateInfo::DeviceCreateInfo(DeviceProperties& deviceProperties, const Ext
extensionProperties = &*extensionPropertiesStorage; extensionProperties = &*extensionPropertiesStorage;
} }
/* Only if we don't have Vulkan 1.1, on which this is core */ /* Only if we don't have Vulkan 1.1, on which these are core */
if(_state->version < Version::Vk11 && extensionProperties->isSupported<Extensions::KHR::get_memory_requirements2>()) if(_state->version < Version::Vk11) {
if(extensionProperties->isSupported<Extensions::KHR::get_memory_requirements2>())
addEnabledExtensions<Extensions::KHR::get_memory_requirements2>(); addEnabledExtensions<Extensions::KHR::get_memory_requirements2>();
if(_state->version < Version::Vk11 && extensionProperties->isSupported<Extensions::KHR::bind_memory2>()) if(extensionProperties->isSupported<Extensions::KHR::bind_memory2>())
addEnabledExtensions<Extensions::KHR::bind_memory2>(); addEnabledExtensions<Extensions::KHR::bind_memory2>();
} }
}
/* Conservatively populate the device properties. /* Conservatively populate the device properties.
- In case the DeviceCreateInfo(DeviceProperties&&) constructor is used, - In case the DeviceCreateInfo(DeviceProperties&&) constructor is used,

Loading…
Cancel
Save