Enumerating physical device extensions
Physical device extensions must be explicitly enabled by the application and may only be available on specific physical devices or device drivers. It’s important to check for the availability of required extensions and to gracefully handle situations where extensions are not supported.
In this recipe, you will learn how to enumerate all physical device extensions and how to convert and store them to strings for later use.
Getting ready
Enumerating physical device extensions is managed by the VulkanCore::PhysicalDevice
class.
How to do it…
Obtaining all physical device extensions for a physical device is simple. Here, we also provide code to store them as strings so that they are easier to work with.
- Enumerating all physical device extensions is done by using the
vkEnumerateDeviceExtensionProperties
function. The result is an array ofVkExtensionProperties
. This structure contains information such as the extension...