NNS_GfdFreeTexVram

Syntax

#include <nnsys/gfd.h>
int NNS_GfdFreeTexVram(NNSGfdTexKey memKey);

Arguments

memKey Key data showing the allocated texture-use memory

Return Values

Zero if the texture-use memory has been freed successfully.

Description

Deallocates the texture-use memory specified by memKey. The TWL-System library uses this function to deallocate texture-use memory allocated from VRAM.

The NNS_GfdFreeTexVram function is defined as shown below. The only process this function conducts internally is calling the function set in the global function pointer NNS_GfdDefaultFuncFreeTexVram.

static inline int
NNS_GfdFreeTexVram(NNSGfdTexKey key)
{
    return (*NNS_GfdDefaultFuncFreeTexVram)(key);
}

NNS_GfdFreeTexVram works by registering the appropriate function for freeing texture-use memory in this function pointer. With this setup, the user can control the freeing of texture-use memory from the library. In the initial state, the function that is set in NNS_GfdDefaultFuncFreeTexVram does nothing and returns an error.

See Also

NNS_GfdAllocTexVram

Revision History

2008/06/20 Changed NITRO-System to TWL-System.
2004/07/16 Initial version.


CONFIDENTIAL