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