|
ReXGlue SDK
|
Public Member Functions | |
| u32 | GetAllBlocks () const |
| u32 | GetVisibleBlocks () const |
| bool | operator== (const TextureExtent &other) const =default |
Static Public Member Functions | |
| static TextureExtent | Calculate (const FormatInfo *format_info, u32 pitch, u32 height, u32 depth, bool is_tiled, bool is_guest) |
| static TextureExtent | Calculate (const TextureInfo *texture_info, bool is_guest) |
Public Attributes | |
| u32 | pitch |
| u32 | height |
| u32 | block_width |
| u32 | block_height |
| u32 | block_pitch_h |
| u32 | block_pitch_v |
| u32 | depth |
|
static |
Returns the extent of a texture level from its block layout and size.
| is_tiled | True for a tiled texture, false for a linear one. |
| is_guest | True to pad as guest memory does, false for a packed host layout. |
|
static |
Returns the extent of the base level of a texture.
| texture_info | The texture, using its base level size. |
| is_guest | True for the padded guest memory layout, false for a packed host layout. |
|
inline |
Returns the block count including padding in every dimension.
|
inline |
Returns the block count including row padding but only the visible block rows.
| u32 rex::xenos::TextureExtent::block_height |
Visible block rows.
| u32 rex::xenos::TextureExtent::block_pitch_h |
Blocks per row including padding.
| u32 rex::xenos::TextureExtent::block_pitch_v |
Block rows including padding.
| u32 rex::xenos::TextureExtent::block_width |
Visible blocks per row.
| u32 rex::xenos::TextureExtent::height |
Height in texels, padded like the pitch.