O'Reilly logo

Learning Vulkan by Parminder Singh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

device

This refers to the logical device responsible for creating an image. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required