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. ... |
Get Learning Vulkan now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.