#include <revolution/gx.h>
void GXGetTexRegionAll(
const GXTexRegion* region,
GXBool* is_32b_mipmap,
u32* tmem_even,
u32* size_even,
u32* tmem_odd,
u32* size_odd );
| region | Pointer to a GXTexRegion structure |
|---|---|
| is_cached | Returns whether this is a cached region or a preloaded region. |
| is_32b_mipmap | Returns whether or not the cached region is intended for a 32-bit (RGBA8) mipmap texture. |
| tmem_even | Returns the texture memory address for the even LODs or for planar (non-32b) textures. |
| size_even | Returns the size (in bytes) of the texture memory region for the even LODs. Note that the value is not doubled for 32-bit mipmap textures. |
| tmem_odd | Returns the texture memory address for the odd LODs (if any). |
| size_odd | Returns the texture memory region size (in bytes) for the odd LODs. Note: The value is not doubled for 32-bit mipmap textures. |
None.
This function returns all the parameters that describe a texture memory region (GXTexRegion structure) object. This object describes how texture memory needs to be used. There are two types of texture memory region objects. The first is a cache texture (created by the GXInitTexCacheRegion function), while the other is a preload texture (created by the GXInitTexPreLoadRegion function).
GXInitTexCacheRegion, GXInitTexPreLoadRegion
2006/03/01 Initial version.
CONFIDENTIAL