charles-lunarg / vk-bootstrap

Vulkan Bootstrapping Iibrary
MIT License
821 stars 82 forks source link

Add enable_extension_if_present to vkb::PhysicalDevice #215

Closed charles-lunarg closed 1 year ago

charles-lunarg commented 1 year ago

If the given extension is present, enable_extension_if_present will make the extension be enabled on the device.

This fixes a gap in capability due to the deprecation of add_desired_extension.

charles-lunarg commented 1 year ago

@DexterHaxxor This is a quick solution to the deprecation of optional extensions. It allows for the easy enabling of extensions while also getting feedback if it is available or not.