1 /*---------------------------------------------------------------------------*
2 
3   Copyright (C) 2010-2011 Nintendo.  All rights reserved.
4 
5   These coded instructions, statements, and computer programs contain
6   proprietary information of Nintendo of America Inc. and/or Nintendo
7   Company Ltd., and are protected by Federal copyright law.  They may
8   not be disclosed to third parties or copied or duplicated in any form,
9   in whole or in part, without the prior written consent of Nintendo.
10 
11  *---------------------------------------------------------------------------*/
12 
13 // gx2Temp.h
14 //
15 // Declares temporary types & function prototypes for gx2 library.  They will go away eventually.
16 
17 #ifndef _CAFE_GX2_TEMP_H_
18 #define _CAFE_GX2_TEMP_H_
19 
20 #ifdef __cplusplus
21 extern "C"
22 {
23 #endif // __cplusplus
24 
25 /// @addtogroup GX2TempGroup
26 /// @{
27 
28 /// \brief returns a value compatible with DEMOFDGpuVersion
29 ///
30 /// \return (0=ver0, 1=ver1, 2=Cafe(GPU7))
31 ///
32 /// \donotcall \threadsafe \devonly \enddonotcall
33 ///
34 u32 GX2API GX2TempGetGPUVersion(void);
35 
36 
37 
38 
39 /// \brief Temp - return number of GX2R resources
40 ///
41 /// \donotcall \fgonly \notthreadsafe \notinterrupt \notexception \devonly \enddonotcall
42 ///
43 u32 GX2API GX2TempGetResourceCount(void);
44 
45 /// \brief Temp - return number of GX2R resources, excluding user memory buffers (that is the number we allocated memory for)
46 ///
47 /// \donotcall \fgonly \notthreadsafe \notinterrupt \notexception \devonly \enddonotcall
48 ///
49 u32 GX2API GX2TempGetNonUserMemoryResourceCount(void);
50 
51 
52 /// \brief Temp - printf all active GX2R resource objects
53 ///
54 /// \donotcall \fgonly \notthreadsafe \notinterrupt \notexception \devonly \enddonotcall
55 ///
56 void GX2API GX2TempDumpResources(void);
57 
58 /// \brief Temp - printf all bound GPU resources
59 ///
60 /// \donotcall \fgonly \notthreadsafe \notinterrupt \notexception \devonly \enddonotcall
61 ///
62 void GX2API GX2TempDumpGPUResourceContext(void);
63 
64 
65 /// @}
66 
67 #ifdef __cplusplus
68 }
69 #endif // __cplusplus
70 
71 #endif // _CAFE_GX2_TEMP_H_
72