ReXGlue SDK
Loading...
Searching...
No Matches
rex::xenos::GuestTextureLayout Struct Reference

#include <rex/xenos/texture.h>

Classes

struct  Level

Public Attributes

Level base
Level mips [xenos::kTextureMaxMips]
u32 mip_offsets_bytes [xenos::kTextureMaxMips]
u32 mips_total_extent_bytes
u32 max_level
u32 packed_level
u32 array_size

Detailed Description

Memory layout of a texture in guest memory.

Array layers and levels are aligned to 4 KB and linear rows to 256 bytes. With packed mips, levels whose width or height is 16 or less share one tail.

Member Data Documentation

◆ array_size

u32 rex::xenos::GuestTextureLayout::array_size

Array layer count, 6 for cubes.

◆ max_level

u32 rex::xenos::GuestTextureLayout::max_level

Last level, clamped to the size.

◆ mip_offsets_bytes

u32 rex::xenos::GuestTextureLayout::mip_offsets_bytes[xenos::kTextureMaxMips]

Offset of each mip from mip_address.

◆ mips

Level rex::xenos::GuestTextureLayout::mips[xenos::kTextureMaxMips]

Mip levels, stored from min(1, packed_level) to min(max_level, packed_level).

◆ packed_level

u32 rex::xenos::GuestTextureLayout::packed_level

First packed level, or UINT32_MAX.


The documentation for this struct was generated from the following file: