#include <nnsys/gfd.h>
void NNS_GfdDumpFrmTexVramManagerEx( NNSGfdFrmTexVramDebugDumpCallBack pFunc, void* pUserContext );
pFunc |
This is a pointer to the NNSGfdFrmTexVramDebugDumpCallBack function type that represents a user-defined debug callback. |
| pUserContext | This is a pointer to a variable passed as an argument to the user-defined debug callback. |
None.
Specifies the user-defined debug callback, and outputs the status of the frame texture VRAM manager for debugging.
The NNS_GfdDumpFrmTexVramManager() function is implemented using this function.
The following represents a sample of the callback function definition implemented using NNS_GfdDumpFrmTexVramManager.
static void DefaultDebugDumpFunc_(
int index,
u32 startAddr,
u32 endAddr,
u32 blockMax,
BOOL bActive,
void* pUserContext
)
{
NNSiGfdDefaultDebugContext* pContext = (NNSiGfdDefaultDebugContext*)pUserContext;
NNS_GFD_NULL_ASSERT( pContext );
if( bActive )
{
OS_Printf("%02d : 0x%08x : 0x%08x : 0x%08x \n",
index,
startAddr,
endAddr,
endAddr - startAddr );
pContext->szTotalFree += endAddr - startAddr;
pContext->szTotalReserved += blockMax;
}else{
OS_Printf("%02d : ---------- : ---------- : ---------- \n", index );
}
}
None.
2007/01/31 Initial version.
CONFIDENTIAL