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="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<title>GX_LoadTex</title>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</head>
10<body>
11<h1 align="left">GX_LoadTex <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<dl>
14  <dd>
15<CODE>#include &lt;nitro/gx/gx_load.h&gt;</CODE><BR>
16  <BR>
17  <CODE>void GX_LoadTex(const void *pSrc, u32 destSlotAddr, u32 szByte);</CODE></dd>
18</dl><h2>Arguments</h2>
19<TABLE border="1" width="100%">
20  <TBODY>
21    <TR>
22      <TD width="190"><em><strong><font face="Courier New">pSrc</font></strong></em></TD>
23      <TD width="512">Pointer to transfer origin</TD>
24    </TR>
25    <TR>
26      <TD width="190"><em><strong><font face="Courier New">destSlotAddr</font></strong></em></TD>
27      <TD width="512">Address in transfer destination texture image slot</TD>
28    </TR>
29    <TR>
30      <TD width="190"><em><strong><font face="Courier New">szByte</font></strong></em></TD>
31      <TD width="512">Transfer size (in bytes)</TD>
32    </TR>
33  </TBODY>
34</TABLE>
35<h2>Return Values</h2>
36<p>None.</p>
37<H2>Description</H2>
38<P>This function uses DMA to transfer texture images to the texture image slot. The transfer destination address (in the texture image slot) can be specified. Use the <code>GX_DMAID</code> DMA channel (defined in <code>gxcommon.h</code>). Both <em><strong><code>destSlotAddr</code></strong></em> and <em><strong><code>szByte</code></strong></em> must be 4-byte aligned. Call this function between the <CODE><A href="GX_BeginLoadTex.html">GX_BeginLoadTex</A></CODE> and <CODE><A href="GX_EndLoadTex.html">GX_EndLoadTex</A></CODE> functions.<BR><BR> <B>Notes:</B> Because the DMA transfer is carried out internally, the transfer source data must be written to main memory in advance using a function such as <CODE><A href="../../os/cache/DC_FlushRange.html" target="_self">DC_FlushRange</A></CODE>.<BR>If the regions for transfer source and transfer destination overlap, the operation result is undefined. Do not call <A href="GX_SetBankForTex.html"><CODE>GX_SetBankForTex</CODE></A>, <A href="GX_ResetBankForTex.html"><CODE>GX_ResetBankForTex</CODE></A>, or <A href="GX_DisableBankForTex.html"><CODE>GX_DisableBankForTex</CODE></A> between <CODE><A href="GX_BeginLoadTex.html">GX_BeginLoadTex</A></CODE> and <CODE><A href="GX_EndLoadTex.html">GX_EndLoadTex</A></CODE>.</P>
39<h2>See Also</h2>
40<P><code><A href="GX_BeginLoadTex.html">GX_BeginLoadTex</A><BR> <A href="GX_EndLoadTex.html">GX_EndLoadTex</A></code></P>
41<H2>Revision History</H2>
42<P>2004/02/09</P>
43<UL>
44  <LI>Revised and expanded the description.
45</UL>
46<P>2004/01/19 Initial version.</P>
47<hr><p>CONFIDENTIAL</p></body>
48</html>
49