nCine::RHI::GU::GuTexture::Page struct

One GE-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
16-byte aligned base of the page's texels, in a format the GE samples
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 GE is told about (the region above padded up).
std::int32_t PaddedHeight
bool Swizzled
Whether the texels are stored in the GE's block interleave.