Understanding image resources
This section will cover the Vulkan APIs used to create an image resource. Here, we'll look into the concept of a data image, image view, and image layout in detail.
Creating images
An image resource in Vulkan is represented using the VkImage
object. This object supports a multidimensional image up to three-dimensional data arrays. Images are created using the vkCreateImage()
API. Here's the syntax to do this:
VkResult vkCreateImage( VkDevice device, const VkImageCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImage* pImage);
The following table describes the various fields of VkCommandPoolCreateInfo
:
Parameters |
Description |
|
This refers to the logical device responsible for creating an image. |
|
This refers to a |
|
This controls the host memory allocation process. |
|
This returns the... |