|
ReXGlue SDK
|
#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 |
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.
| u32 rex::xenos::GuestTextureLayout::array_size |
Array layer count, 6 for cubes.
| u32 rex::xenos::GuestTextureLayout::max_level |
Last level, clamped to the size.
| u32 rex::xenos::GuestTextureLayout::mip_offsets_bytes[xenos::kTextureMaxMips] |
Offset of each mip from mip_address.
| Level rex::xenos::GuestTextureLayout::mips[xenos::kTextureMaxMips] |
Mip levels, stored from min(1, packed_level) to min(max_level, packed_level).
| u32 rex::xenos::GuestTextureLayout::packed_level |
First packed level, or UINT32_MAX.