#include <nitro/gx/gx_load.h>void GX_LoadTex(const void *pSrc, u32 destSlotAddr, u32 szByte);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. The DMA channel that is used is GX_DMAID (defined in gxcommon.h). Both destSlotAddr and szByte must be 4-byte aligned. Call between GX_BeginLoadTex and GX_EndLoadTex.
Notes:
DC_FlushRange or some similar function.GX_SetBankForTex,
GX_ResetBankForTex, or
GX_DisableBankForTex between
GX_BeginLoadTex and
GX_EndLoadTex.pSr |
Pointer to transfer source |
destSlotAddr |
Address in transfer destination texture image slot |
szByte |
Transfer size (in bytes) |
None
GX_BeginLoadTex,
GX_EndLoadTex
02/09/2004 Revised and added to the description
01/19/2004 Initial Version