CommonLibSSE (Parapets fork)
GStats.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
RE
4
{
5
struct
GStatGroups
6
{
7
// _Mem for GMemoryStat.
8
// _Tks for GTimerStat.
9
// _Cnt for GCounterStat.
10
enum
GStatGroup
: std::uint32_t
11
{
12
kGStatGroup_Default
= 0,
13
14
kGStatGroup_Core
= 16,
15
kGStatGroup_Renderer
= 1 << 6,
16
kGStatGroup_RenderGen
= 2 << 6,
17
18
kGStatGroup_GFxFontCache
= 3 << 6,
19
kGStatGroup_GFxMovieData
= 4 << 6,
20
kGStatGroup_GFxMovieView
= 5 << 6,
21
kGStatGroup_GFxRenderCache
= 6 << 6,
22
kGStatGroup_GFxPlayer
= 7 << 6,
23
kGStatGroup_GFxIME
= 8 << 6,
24
25
// General memory
26
kGStat_Mem
=
kGStatGroup_Default
+ 1,
27
kGStat_Default_Mem
,
28
kGStat_Image_Mem
,
29
kGStat_Sound_Mem
,
30
kGStat_String_Mem
,
31
kGStat_Video_Mem
,
32
33
// Memory allocated for debugging purposes.
34
kGStat_Debug_Mem
,
35
kGStat_DebugHUD_Mem
,
36
kGStat_DebugTracker_Mem
,
37
kGStat_StatBag_Mem
,
38
39
// Core entries
40
kGStatHeap_Start
=
kGStatGroup_Core
,
41
// 16 slots for HeapSummary
42
43
// How many entries we support by default
44
kGStat_MaxId
= 64 << 6,
// 64 * 64 = 4096
45
kGStat_EntryCount
= 512
46
};
47
};
48
using
GStatGroup
=
GStatGroups::GStatGroup
;
49
50
struct
GStatRenderers
51
{
52
enum
GStatRenderer
53
{
54
kDefault
= GStatGroup::kGStatGroup_Renderer,
55
56
kMem
,
57
58
// Video Memory.
59
kVMem
,
60
kTextureVMem
,
61
kBufferVMem
,
62
63
// Counts
64
kCounters
,
65
kTextureUploadCnt
,
66
kTextureUpdateCnt
,
67
kDPCnt
,
68
kDPLineCnt
,
69
kDPTriangleCnt
,
70
kTriangleCnt
,
71
kLineCnt
,
72
kMaskCnt
,
73
kFilterCnt
,
74
};
75
};
76
using
GStatRenderer
=
GStatRenderers::GStatRenderer
;
77
78
enum class
GHeapID
:
UPInt
79
{
80
kReserved
= 0,
81
kGlobal
= 1,
82
kMovieDef
= 2,
83
kMovieView
= 3,
84
kMovieData
= 4,
85
kMeshCache
= 5,
86
kFontCache
= 6,
87
kImages
= 7,
88
kOtherHeaps
= 8,
89
kHUDHeaps
= 9,
90
};
91
}
RE
Definition:
AbsorbEffect.h:6
RE::UPInt
std::size_t UPInt
Definition:
SFTypes.h:5
RE::GHeapID
GHeapID
Definition:
GStats.h:79
RE::GHeapID::kMeshCache
@ kMeshCache
RE::GHeapID::kReserved
@ kReserved
RE::GHeapID::kOtherHeaps
@ kOtherHeaps
RE::GHeapID::kGlobal
@ kGlobal
RE::GHeapID::kImages
@ kImages
RE::GHeapID::kMovieDef
@ kMovieDef
RE::GHeapID::kHUDHeaps
@ kHUDHeaps
RE::GHeapID::kMovieData
@ kMovieData
RE::GHeapID::kFontCache
@ kFontCache
RE::GHeapID::kMovieView
@ kMovieView
RE::GStatGroups
Definition:
GStats.h:6
RE::GStatGroups::GStatGroup
GStatGroup
Definition:
GStats.h:11
RE::GStatGroups::kGStatGroup_GFxMovieView
@ kGStatGroup_GFxMovieView
Definition:
GStats.h:20
RE::GStatGroups::kGStat_EntryCount
@ kGStat_EntryCount
Definition:
GStats.h:45
RE::GStatGroups::kGStat_Default_Mem
@ kGStat_Default_Mem
Definition:
GStats.h:27
RE::GStatGroups::kGStat_MaxId
@ kGStat_MaxId
Definition:
GStats.h:44
RE::GStatGroups::kGStatGroup_GFxMovieData
@ kGStatGroup_GFxMovieData
Definition:
GStats.h:19
RE::GStatGroups::kGStat_DebugTracker_Mem
@ kGStat_DebugTracker_Mem
Definition:
GStats.h:36
RE::GStatGroups::kGStatGroup_GFxPlayer
@ kGStatGroup_GFxPlayer
Definition:
GStats.h:22
RE::GStatGroups::kGStatHeap_Start
@ kGStatHeap_Start
Definition:
GStats.h:40
RE::GStatGroups::kGStat_Debug_Mem
@ kGStat_Debug_Mem
Definition:
GStats.h:34
RE::GStatGroups::kGStat_String_Mem
@ kGStat_String_Mem
Definition:
GStats.h:30
RE::GStatGroups::kGStatGroup_GFxRenderCache
@ kGStatGroup_GFxRenderCache
Definition:
GStats.h:21
RE::GStatGroups::kGStat_Mem
@ kGStat_Mem
Definition:
GStats.h:26
RE::GStatGroups::kGStatGroup_Default
@ kGStatGroup_Default
Definition:
GStats.h:12
RE::GStatGroups::kGStat_Video_Mem
@ kGStat_Video_Mem
Definition:
GStats.h:31
RE::GStatGroups::kGStatGroup_Renderer
@ kGStatGroup_Renderer
Definition:
GStats.h:15
RE::GStatGroups::kGStatGroup_GFxFontCache
@ kGStatGroup_GFxFontCache
Definition:
GStats.h:18
RE::GStatGroups::kGStat_DebugHUD_Mem
@ kGStat_DebugHUD_Mem
Definition:
GStats.h:35
RE::GStatGroups::kGStatGroup_RenderGen
@ kGStatGroup_RenderGen
Definition:
GStats.h:16
RE::GStatGroups::kGStat_Sound_Mem
@ kGStat_Sound_Mem
Definition:
GStats.h:29
RE::GStatGroups::kGStat_Image_Mem
@ kGStat_Image_Mem
Definition:
GStats.h:28
RE::GStatGroups::kGStatGroup_GFxIME
@ kGStatGroup_GFxIME
Definition:
GStats.h:23
RE::GStatGroups::kGStatGroup_Core
@ kGStatGroup_Core
Definition:
GStats.h:14
RE::GStatGroups::kGStat_StatBag_Mem
@ kGStat_StatBag_Mem
Definition:
GStats.h:37
RE::GStatRenderers
Definition:
GStats.h:51
RE::GStatRenderers::GStatRenderer
GStatRenderer
Definition:
GStats.h:53
RE::GStatRenderers::kMem
@ kMem
Definition:
GStats.h:56
RE::GStatRenderers::kTextureUploadCnt
@ kTextureUploadCnt
Definition:
GStats.h:65
RE::GStatRenderers::kMaskCnt
@ kMaskCnt
Definition:
GStats.h:72
RE::GStatRenderers::kCounters
@ kCounters
Definition:
GStats.h:64
RE::GStatRenderers::kDefault
@ kDefault
Definition:
GStats.h:54
RE::GStatRenderers::kTextureVMem
@ kTextureVMem
Definition:
GStats.h:60
RE::GStatRenderers::kLineCnt
@ kLineCnt
Definition:
GStats.h:71
RE::GStatRenderers::kDPLineCnt
@ kDPLineCnt
Definition:
GStats.h:68
RE::GStatRenderers::kBufferVMem
@ kBufferVMem
Definition:
GStats.h:61
RE::GStatRenderers::kVMem
@ kVMem
Definition:
GStats.h:59
RE::GStatRenderers::kTriangleCnt
@ kTriangleCnt
Definition:
GStats.h:70
RE::GStatRenderers::kDPTriangleCnt
@ kDPTriangleCnt
Definition:
GStats.h:69
RE::GStatRenderers::kDPCnt
@ kDPCnt
Definition:
GStats.h:67
RE::GStatRenderers::kFilterCnt
@ kFilterCnt
Definition:
GStats.h:73
RE::GStatRenderers::kTextureUpdateCnt
@ kTextureUpdateCnt
Definition:
GStats.h:66
CommonLibSSE
include
RE
G
GStats.h
Generated by
1.9.1