1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8<TITLE>GXInvalidateTexRegion</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">GXInvalidateTexRegion</H1> 12<H2>C Specification</H2> 13<DL> 14 <DD> 15<PRE><CODE>#include <revolution/gx.h></CODE></PRE> 16 <DD> 17<PRE><CODE>void GXInvalidateTexRegion( const <a href="../Structures/GXTexRegion.html">GXTexRegion</a>* region );</CODE></PRE> 18</DL> 19<H2>Arguments</H2> 20<TABLE border="1" cellpadding="3" cellspacing="0.1"> 21 <TBODY> 22 <TR> 23<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE>region</CODE></STRONG></EM></TD> 24<TD width="520">A pointer to a <a href="../Structures/GXTexRegion.html"><code>GXTexRegion</code></a> object</TD> 25 </TR> 26 </TBODY> 27</TABLE> 28<H2>Return Values</H2> 29<P>None.</P> 30<H2>Description</H2> 31<P>This function invalidates the texture cache in texture memory (TMEM) described by <code><em><strong>region</strong></em></code>. 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 <a href="GXPreLoadEntireTexture.html"><code>GXPreLoadEntireTexture</code></a>) do not use the tags.</P> 32<P>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.</P> 33<H2>See Also</H2> 34<P><a href="GXInvalidateTexAll.html">GXInvalidateTexAll</a><br> <a href="GXInitTexCacheRegion.html">GXInitTexCacheRegion</a></P> 35<H2>Revision History</H2> 36<P>03/01/2006 Initial version.</P> 37</BODY> 38</HTML>