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

Implementing the image resource with linear tiling

In this section, we will implement the image resource with linear tiling and display a textured image on the faces of our rendering cube that we implemented in the last chapter.

As we learned in the Introduction to tiling section in Chapter 6, Allocating Image Resources and Building a Swapchain with WSI, there are two types of image tiling—linear and optimal:

  • Linear tiling: In this type of tiling arrangement, the image texels are laid out in a row-by-row manner (row-major order), which might require some padding to match the row pitch. A row pitch defines the width of the row; as a result, if the laid out texel row is smaller than the row pitch, then padding is needed. The VkImageCreateInfo indicates ...

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