SpiecsEngine
 
Loading...
Searching...
No Matches
ImguiVideoMemoryRuntimeHUD.h
Go to the documentation of this file.
1/**
2* @file ImguiVideoMemoryRuntimeHUD.h
3* @brief The ImguiVideoMemoryRuntimeHUD Class Definitions.
4* @author Spices.
5*/
6
7#pragma once
8#include "Core/Core.h"
9#include "Slate/Imgui/ImguiUtils.h"
10
11namespace Spices {
12
13 /*
14 * @brief The ImguiVideoMemoryRuntimeHUD Class.
15 * This class defines how to render GPU Memory Statics HUD.
16 */
18 {
19 public:
20
21 /**
22 * @brief Constructor Function.
23 * @param[in] panelName The Slate's name to show.
24 * @param[in] frameInfo The Frame Date that in use.
25 */
27 const std::string& panelName ,
28 FrameInfo& frameInfo
29 );
30
31 /**
32 * @brief Destructor Function.
33 */
34 virtual ~ImguiVideoMemoryRuntimeHUD() override = default;
35
36 /**
37 * @brief This interface is called On SlateSystem Update.
38 * @param[in] ts TimeStep.
39 */
40 virtual void OnUpdate(TimeStep& ts) override {}
41
42 /**
43 * @brief This interface is called On SlateRenderer Render.
44 */
45 virtual void OnRender() override;
46
47 /**
48 * @brief This interface is called on global event function pointer execute.
49 * @param[in] event Event.
50 */
51 virtual void OnEvent(Event& event) override {};
52
53 private:
54
55 /**
56 * @brief Convert bytes to string(GB/MB/KB).
57 * @param[in] bytes .
58 * @return Returns string.
59 */
60 std::string ConvertBytestoString(uint64_t bytes);
61
62 /**
63 * @brief Convert memory flags to string.
64 * @param[in] flag VkMemoryHeapFlags.
65 * @return Returns string.
66 */
67 std::string ConvertMemoryFlagtoString(VkMemoryHeapFlags flag);
68
69 };
70}
#define ICON_TEXT(icon, text)
Definition ImguiHelper.h:24
#define SPICES_PROFILE_ZONE
This Class is the basic Event Class. Inherit from it and create specific event class.
Definition Event.h:96
FrameInfo Class. This class defines the FrameInfo data.
Definition FrameInfo.h:32
ImguiSlate(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function. Init with Slate's name.
Definition ImguiUtils.h:35
This Class defines the basic behaves of specific slate. When we add an new Slate, we need inherit fro...
Definition ImguiUtils.h:27
ImguiStatistics(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
virtual void OnRender() override
This interface is called On SlateRenderer Render.
virtual ~ImguiVideoMemoryRuntimeHUD() override=default
Destructor Function.
std::string ConvertBytestoString(uint64_t bytes)
Convert bytes to string(GB/MB/KB).
virtual void OnRender() override
This interface is called On SlateRenderer Render.
ImguiVideoMemoryRuntimeHUD(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
std::string ConvertMemoryFlagtoString(VkMemoryHeapFlags flag)
Convert memory flags to string.
virtual void OnUpdate(TimeStep &ts) override
This interface is called On SlateSystem Update.
virtual void OnEvent(Event &event) override
This interface is called on global event function pointer execute.
This Class handles our engine time step during frames. Global Unique.
Definition TimeStep.h:22