DirectZ
Loading...
Searching...
No Matches
dz::ImGuiLayer Struct Reference

#include <ImGuiLayer.hpp>

Public Types

using ImmediateDrawFunction = std::function<void(ImGuiLayer&)>
using ImmediateDrawPair = std::pair<std::string, ImmediateDrawFunction>

Public Member Functions

void Render (WINDOW &window)
size_t AddImmediateDrawFunction (float priority, const std::string &key, const ImmediateDrawFunction &fn)
bool RemoveImmediateDrawFunction (size_t id)

Static Public Member Functions

static void FocusWindow (WINDOW *, bool)
static bool Init ()
static bool VulkanInit ()
static bool Shutdown (DirectRegistry &)

Public Attributes

friend WINDOW

Friends

std::pair< VkDescriptorSetLayout, VkDescriptorSet > image_create_descriptor_set (Image *image)
 Creates a single descriptor set for a given Image*.

Member Typedef Documentation

◆ ImmediateDrawFunction

using dz::ImGuiLayer::ImmediateDrawFunction = std::function<void(ImGuiLayer&)>

◆ ImmediateDrawPair

Member Function Documentation

◆ AddImmediateDrawFunction()

size_t dz::ImGuiLayer::AddImmediateDrawFunction ( float priority,
const std::string & key,
const ImmediateDrawFunction & fn )

◆ FocusWindow()

void dz::ImGuiLayer::FocusWindow ( WINDOW * ,
bool  )
static

◆ Init()

bool dz::ImGuiLayer::Init ( )
static

◆ RemoveImmediateDrawFunction()

bool dz::ImGuiLayer::RemoveImmediateDrawFunction ( size_t id)

◆ Render()

void dz::ImGuiLayer::Render ( WINDOW & window)

◆ Shutdown()

bool dz::ImGuiLayer::Shutdown ( DirectRegistry & )
static

◆ VulkanInit()

bool dz::ImGuiLayer::VulkanInit ( )
static

◆ image_create_descriptor_set

std::pair< VkDescriptorSetLayout, VkDescriptorSet > image_create_descriptor_set ( Image * image)
friend

Creates a single descriptor set for a given Image*.

Note
no need to free the descriptor as this is done by the DirectRegistry
Returns
a pair containing the SetLayout and Set for usage

Member Data Documentation

◆ WINDOW

friend dz::ImGuiLayer::WINDOW

The documentation for this struct was generated from the following file: