#include <nnsys/gfd.h>
int NNS_GfdFreeTexVram(NNSGfdTexKey memKey);
memKey |
Key data showing the allocated texture-use memory |
Zero if the texture-use memory has been freed successfully.
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.
2008/06/20 Changed NITRO-System to TWL-System.
2004/07/16 Initial version.
CONFIDENTIAL