Storage images allow us to load (unfiltered) data from images bound to pipelines. But, what's more important, they also allow us to store data from shaders in the images. Such images must be created with a VK_IMAGE_USAGE_STORAGE_BIT usage flag specified.
Creating a storage image
How to do it...
- Take the handle of a physical device and store it in a variable of type VkPhysicalDevice named physical_device.
- Select a format that will be used for a storage image. Initialize a variable of type VkFormat named format with the selected format.
- Create a variable of type VkFormatProperties named format_properties.
- Call vkGetPhysicalDeviceFormatProperties( physical_device, format, &format_properties ) and provide the physical_device variable, the format variable...