nCine::RHI::PICA::PicaTexture::Page struct

One GPU-addressable piece of the texture.

A texture no larger than MaxPageDimension on either axis has exactly one page covering it whole, which is the case for practically all content; bigger images are tiled by pages (see the class documentation).

Public variables

const void* Data
Base of the page's tiled texels, in a format the GPU samples (linear heap or VRAM).
std::int32_t OriginX
Position of the page's first texel within the source image.
std::int32_t OriginY
std::int32_t Width
Size of the source region the page covers.
std::int32_t Height
std::int32_t PaddedWidth
Power-of-two size the GPU is told about (the region above padded up).
std::int32_t PaddedHeight