mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 15:24:34 +00:00
Fix: portability_enumeration flag was not available before 1.3.208
This commit is contained in:
parent
fafc735714
commit
bf4e2f073b
@ -710,9 +710,11 @@ detail::Result<Instance> InstanceBuilder::build() const {
|
|||||||
instance_create_info.ppEnabledExtensionNames = extensions.data();
|
instance_create_info.ppEnabledExtensionNames = extensions.data();
|
||||||
instance_create_info.enabledLayerCount = static_cast<uint32_t>(layers.size());
|
instance_create_info.enabledLayerCount = static_cast<uint32_t>(layers.size());
|
||||||
instance_create_info.ppEnabledLayerNames = layers.data();
|
instance_create_info.ppEnabledLayerNames = layers.data();
|
||||||
|
#if defined(VK_KHR_portability_enumeration)
|
||||||
if (portability_enumeration_support) {
|
if (portability_enumeration_support) {
|
||||||
instance_create_info.flags |= VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR;
|
instance_create_info.flags |= VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
Instance instance;
|
Instance instance;
|
||||||
VkResult res =
|
VkResult res =
|
||||||
|
Loading…
Reference in New Issue
Block a user