NNS_GfdDumpLnkTexVramManagerEx

Syntax

#include <nnsys/gfd.h>

void NNS_GfdDumpLnkTexVramManagerEx( 
    NNSGfdLnkDumpCallBack           pFuncForNrm, 
    NNSGfdLnkDumpCallBack           pFuncFor4x4, 
    void*                           pUserData );

Arguments

pFuncForNrm Debug output process function (for normal textures)
pFuncFor4x4 Debug output process function (for 4x4 compressed textures)
pUserData Debug output process data passed as an argument to the debug output process function.

Return Values

None.

Description

Outputs the status of the linked list texture VRAM manager for debugging.
The parameters in the internal management list used by the VRAM manager are set as arguments, and the specified debug output process function gets called. Two types of output functions can be specified as arguments: one for the normal textures and the other for the 4x4 compressed textures.
Although NULL may be specified in place of one or both arguments, specifying it for both arguments causes this function to fail on assertion.
A declaration of a debug output process function and an example of implementation are shown below.



//------------------------------------------------------
// NNSGfdLnkDumpCallBack declaration
//------------------------------------------------------
typedef void (*NNSGfdLnkDumpCallBack)( 
    u32                             addr, 
    u32                             szByte, 
    void*                           pUserData );
    

//------------------------------------------------------
// NNSGfdLnkDumpCallBack implementation example
//------------------------------------------------------
void DumpCallBack_( u32 addr, u32 szByte, void* pUserData )
{
    // Calculate the total size
    (*((u32*)pUserData)) += szByte;
    
    // output information to the debug console
    OS_Printf("0x%08x:  0x%08x    \n", addr, szByte );   
}

See Also

None.

Revision History

2007/01/31 Initial version.


CONFIDENTIAL