Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
graphicsprofilerpanel.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
17
//------------------------------------------------------------------------------
18
#if WITH_NEBULA_EDITOR
19
#include "
coregraphics/commandbuffer.h
"
20
#include "
coregraphics/config.h
"
21
#include "imgui.h"
22
#include "
math/vec4.h
"
23
#include "neweditor/base/timeline.h"
24
#include "neweditor/core/editorpanel.h"
25
#include "
util/array.h
"
26
27
namespace
GraphicsFeature
28
{
29
30
class
GraphicsProfilerPanel
final :
public
Editor::EditorPanel
31
{
32
__DeclareClass
(
GraphicsProfilerPanel
)
33
public
:
34
GraphicsProfilerPanel
();
35
virtual
~GraphicsProfilerPanel
();
36
38
void
Draw()
override
;
39
40
private
:
42
void
ReadFrame();
43
45
IndexT
DrawMarker(
const
CoreGraphics::FrameProfilingMarker& marker, Editor::TimelineCanvas& canvas,
46
ImVec2 pos,
IndexT
level);
47
49
IndexT
DrawQueue(
const
char
* name,
CoreGraphics::QueueType
queue,
50
const
Util::Array<CoreGraphics::FrameProfilingMarker>
& markers, Editor::TimelineCanvas& canvas,
51
ImVec2 pos);
52
53
bool
pauseProfiling;
54
bool
captureWorstFrame;
55
56
float
currentFrameTime;
57
float
worstFrameTime;
58
59
Editor::TimelineCanvas canvas;
60
62
#if NEBULA_ENABLE_PROFILING
63
Util::Array<CoreGraphics::FrameProfilingMarker>
graphicsMarkers;
64
Util::Array<CoreGraphics::FrameProfilingMarker>
computeMarkers;
65
#endif
66
};
67
68
}
// namespace GraphicsFeature
69
#endif
// WITH_NEBULA_EDITOR
70
//------------------------------------------------------------------------------
array.h
GraphicsProfilerPanel
The GPU half of the profiler.
Util::Array
Nebula's dynamic array class.
Definition
array.h:61
commandbuffer.h
CoreGraphics::QueueType
QueueType
Definition
config.h:40
GraphicsFeature
Definition
graphicsfeatureunit.cc:66
config.h
Compile time configuration options for the CoreGraphics subsystem.
__DeclareClass
#define __DeclareClass(type)
IndexT
int IndexT
Definition
types.h:49
vec4.h
code
addons
graphicsfeature
editor
graphicsprofilerpanel.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.