To be able to properly display images on screen, we need to enable a set of WSI extensions. They are divided into instance- and device-levels, depending on the functionality they introduce. The first step is to create a Vulkan Instance with a set of enabled extensions that allow us to create a presentation surface--a Vulkan representation of an application's window.
Creating a Vulkan Instance with WSI extensions enabled
How to do it...
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...