# GX_LoadTexEx

## C Specification

      #include <nitro/gx/gx_load.h>

      void GX_LoadTexEx(
          GXVRamTex tex,
          const void *pSrc,
          u32 destSlotAddr,
          u32 szByte
      );

## Description

This function uses DMA to transfer texture images to VRAM banks that can be allocated to texture image slots. 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.

Notes:

- Because this is an internal DMA transfer, the transfer source data must be written into main memory using `DC_FlushRange` or some similar function.
- If the regions for transfer source and transfer destination overlap, the operation result is undefined.
- The VRAM bank specified by `tex` must be mapped in LCDC space.

## Arguments

`tex` | Texture image slot setting
`pSrc` | Pointer to transfer source
`destSlotAddr` | Address in transfer destination texture image slot
`szByte` | Transfer size (in bytes)

## Return Values

None

## See Also

`GX_LoadTex`

## Revision History

02/23/2004 Initial Version