2
3
4
5
9#include "Slate/Imgui/ImguiUtils.h"
14
15
29
30
33 ImGui_ImplVulkan_RemoveTexture(
reinterpret_cast<VkDescriptorSet>(SceneColorID));
34 ImGui_ImplVulkan_RemoveTexture(
reinterpret_cast<VkDescriptorSet>(AlbedoID));
35 ImGui_ImplVulkan_RemoveTexture(
reinterpret_cast<VkDescriptorSet>(NormalID));
36 ImGui_ImplVulkan_RemoveTexture(
reinterpret_cast<VkDescriptorSet>(RoughnessID));
37 ImGui_ImplVulkan_RemoveTexture(
reinterpret_cast<VkDescriptorSet>(MetallicID));
38 ImGui_ImplVulkan_RemoveTexture(
reinterpret_cast<VkDescriptorSet>(PositionID));
43
44
45
51
52
53
54
56 const std::string& panelName ,
61
62
66
67
68
72
73
77
78
84
85
86
87
91
92
98
99
103
104
108
109
#define BIND_EVENT_FN(x)
Bind Event.
#define SPICES_PROFILE_ZONEN(...)
#define SPICES_PROFILE_ZONE
EventDispatcher(Event &event)
Constructor Function.
This Class store a Specific Event type first and Dispatch a event handle function to it.
This Class is the basic Event Class. Inherit from it and create specific event class.
FrameInfo Class. This class defines the FrameInfo data.
virtual void OnUpdate(TimeStep &ts) override
This interface is called On SlateSystem Update.
GBufferID m_GBufferID
The instance of GBufferID.
float m_Height
The slate height.
virtual ~ImguiGBufferVisualizer() override=default
Destructor Function.
void QueryGBufferID()
Query GBufferID from RendererResourcePool.
bool OnSlateResized(SlateResizeEvent &event)
Event Dispatcher target. Registy on Slate(Viewport) Resized.
float m_Width
The slate width.
virtual void OnEvent(Event &event) override
This interface is called On Global Event Function Pointer is called.
ImguiGBufferVisualizer(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
virtual void OnRender() override
This interface is called On SlateRenderer Render.
ImguiSlate(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function. Init with Slate's name.
This Class defines the basic behaves of specific slate. When we add an new Slate, we need inherit fro...
const uint32_t & GetHeight() const
Get New Viewport Height.
const uint32_t & GetWidth() const
Get New Viewport Width.
This Class is inherited from Event Class. Called by Viewport Resize.
This Class handles our engine time step during frames. Global Unique.
void Free() const
Free in used DescriptorSet used by GBuffer Visualizer.
The GBuffer Texture's ImTextureID.