GXInvalidateTexRegion

C Specification

#include <revolution/gx.h>
void GXInvalidateTexRegion( const GXTexRegion* region );

Arguments

region A pointer to a GXTexRegion object

Return Values

None.

Description

This function invalidates the texture cache in texture memory (TMEM) described by region. More accurately, this function invalidates the cache tags, forcing the texture cache to load new data. This function should be called for using the CPU to modify a texture in main memory, or to load a new texture into main memory that might be cached in the texture region. Preloaded textures (see GXPreLoadEntireTexture) do not use the tags.

The texture hardware can invalidate four tags per each graphics processor (GP) clock cycle. Each tag represents a superline or 512B of TMEM. Therefore, it takes 16 GP clock cycles to invalidate a 32KB texture region.

See Also

GXInvalidateTexAll
GXInitTexCacheRegion

Revision History

03/01/2006 Initial version.