On the Windows operating systems family, perform the following steps:
- Prepare a variable of type VkInstance named instance.
- Prepare a variable of type std::vector<char const *> named desired_extensions. Store the names of all extensions you want to enable in the desired_extensions variable.
- Add another element to the desired_extensions vector with the VK_KHR_SURFACE_EXTENSION_NAME value.
- Add yet another element to the desired_extensions vector with the VK_KHR_WIN32_SURFACE_EXTENSION_NAME value.
- Create a Vulkan Instance object for which enable all of the extensions specified in the desired_extensions variable (refer to the Creating a Vulkan Instance recipe from Chapter 1, Instance and Devices).
On the Linux operating systems ...