LeviLamina
Loading...
Searching...
No Matches
HudDebugOverlayRenderer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/options/DebugHudOptions.h"
7#include "mc/deps/core/threading/BackgroundWorker.h"
8#include "mc/deps/minecraft_renderer/renderer/MaterialPtr.h"
9
11public:
12 // HudDebugOverlayRenderer inner types declare
13 // clang-format off
15 struct WorkerStats;
16 struct TaskStatsSnapshot;
17 struct TaskStats;
18 struct SpinLockMetrics;
19 struct SpinLockStats;
20 // clang-format on
21
22 // HudDebugOverlayRenderer inner types define
23 struct WorkerStatsSnapshot {
24 public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 8, uint64> queued;
28 ::ll::TypedStorage<8, 8, uint64> reQueued;
29 ::ll::TypedStorage<8, 8, uint64> processed;
30 ::ll::TypedStorage<8, 8, uint64> noops;
31 ::ll::TypedStorage<8, 8, uint64> maxQueued;
32 ::ll::TypedStorage<8, 8, uint64> sorts;
33 ::ll::TypedStorage<8, 8, uint64> waits;
34 // NOLINTEND
35 };
36
37 struct WorkerStats {
38 public:
39 // member variables
40 // NOLINTBEGIN
41 ::ll::TypedStorage<8, 56, ::HudDebugOverlayRenderer::WorkerStatsSnapshot> last;
42 ::ll::TypedStorage<8, 56, ::HudDebugOverlayRenderer::WorkerStatsSnapshot> curr;
43 // NOLINTEND
44 };
45
46 struct TaskStatsSnapshot {
47 public:
48 // member variables
49 // NOLINTBEGIN
50 ::ll::TypedStorage<8, 8, uint64> count;
51 ::ll::TypedStorage<8, 8, uint64> maxCount;
52 // NOLINTEND
53 };
54
55 struct TaskStats {
56 public:
57 // member variables
58 // NOLINTBEGIN
59 ::ll::TypedStorage<8, 16, ::HudDebugOverlayRenderer::TaskStatsSnapshot> last;
60 ::ll::TypedStorage<8, 16, ::HudDebugOverlayRenderer::TaskStatsSnapshot> curr;
61 // NOLINTEND
62 };
63
64 struct SpinLockMetrics {
65 public:
66 // member variables
67 // NOLINTBEGIN
68 ::ll::TypedStorage<8, 8, uint64> contention;
69 ::ll::TypedStorage<8, 8, uint64> contentionBlocked;
70 ::ll::TypedStorage<8, 8, uint64> blockedTicks;
71 ::ll::TypedStorage<8, 8, uint64> blockedTicksMax;
72 ::ll::TypedStorage<8, 8, uint64> yields;
73 ::ll::TypedStorage<8, 8, uint64> lockCount;
74 ::ll::TypedStorage<8, 8, uint64> lockTicks;
75 ::ll::TypedStorage<8, 8, uint64> lockTicksMax;
76 // NOLINTEND
77 };
78
79 struct SpinLockStats {
80 public:
81 // member variables
82 // NOLINTBEGIN
83 ::ll::TypedStorage<8, 64, ::HudDebugOverlayRenderer::SpinLockMetrics> last;
84 ::ll::TypedStorage<8, 64, ::HudDebugOverlayRenderer::SpinLockMetrics> curr;
85 // NOLINTEND
86 };
87
88public:
89 // member variables
90 // NOLINTBEGIN
91 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mDebugDepthArrayTextureMaterial;
92 ::ll::TypedStorage<8, 64, ::std::unordered_map<::BackgroundWorker*, ::HudDebugOverlayRenderer::WorkerStats>>
93 mWorkerStats;
94 ::ll::TypedStorage<8, 64, ::std::unordered_map<::BackgroundWorker*, ::HudDebugOverlayRenderer::WorkerStats>>
95 mCurrentWorkerStats;
96 ::ll::TypedStorage<8, 32, ::HudDebugOverlayRenderer::TaskStats> mTaskStats;
97 ::ll::TypedStorage<8, 128, ::HudDebugOverlayRenderer::SpinLockStats> mSpinLockStats;
98 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mLastUpdateTime;
99 ::ll::TypedStorage<4, 8, ::std::optional<::DebugHudOptions>> mLastDebugHudOption;
100 ::ll::TypedStorage<8, 16, ::std::optional<::std::chrono::steady_clock::time_point>> mDebugHudOptionEndTime;
101 // NOLINTEND
102
103public:
104 // member functions
105 // NOLINTBEGIN
106 MCAPI ~HudDebugOverlayRenderer();
107 // NOLINTEND
108
109public:
110 // destructor thunk
111 // NOLINTBEGIN
112 MCAPI void $dtor();
113 // NOLINTEND
114};
Definition HudDebugOverlayRenderer.h:5
Definition HudDebugOverlayRenderer.h:22
Definition HudDebugOverlayRenderer.h:28
Definition HudDebugOverlayRenderer.h:20
Definition HudDebugOverlayRenderer.h:26
Definition HudDebugOverlayRenderer.h:18
Definition HudDebugOverlayRenderer.h:24