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