Skip to content

KDGpuExample::ImGuiRenderer

Module: KDGpuExample API

ImGuiRenderer ...

#include <KDGpuExample/imgui_renderer.h>

Public Functions

Name
ImGuiRenderer(KDGpu::Device * device, KDGpu::Queue * queue, ImGuiContext * imGuiContext)
~ImGuiRenderer()
ImGuiRenderer(const ImGuiRenderer & other) =delete
ImGuiRenderer & operator=(const ImGuiRenderer & other) =delete
ImGuiRenderer(ImGuiRenderer && other) =default
ImGuiRenderer & operator=(ImGuiRenderer && other) =default
void initialize(float scaleFactor, KDGpu::SampleCountFlagBits samples, KDGpu::Format colorFormat, KDGpu::Format depthFormat)
void updateScale(float scaleFactor)
void cleanup()
bool updateGeometryBuffers(uint32_t inFlightIndex)
void recordCommands(KDGpu::RenderPassCommandRecorder * recorder, KDGpu::Extent2D extent, uint32_t inFlightIndex, KDGpu::RenderPass * currentRenderPass =nullptr, int lastSubpassIndex =0)

Public Functions Documentation

function ImGuiRenderer

1
2
3
4
5
ImGuiRenderer(
    KDGpu::Device * device,
    KDGpu::Queue * queue,
    ImGuiContext * imGuiContext
)

function ~ImGuiRenderer

1
~ImGuiRenderer()

function ImGuiRenderer

1
2
3
ImGuiRenderer(
    const ImGuiRenderer & other
) =delete

function operator=

1
2
3
ImGuiRenderer & operator=(
    const ImGuiRenderer & other
) =delete

function ImGuiRenderer

1
2
3
ImGuiRenderer(
    ImGuiRenderer && other
) =default

function operator=

1
2
3
ImGuiRenderer & operator=(
    ImGuiRenderer && other
) =default

function initialize

1
2
3
4
5
6
void initialize(
    float scaleFactor,
    KDGpu::SampleCountFlagBits samples,
    KDGpu::Format colorFormat,
    KDGpu::Format depthFormat
)

function updateScale

1
2
3
void updateScale(
    float scaleFactor
)

function cleanup

1
void cleanup()

function updateGeometryBuffers

1
2
3
bool updateGeometryBuffers(
    uint32_t inFlightIndex
)

function recordCommands

1
2
3
4
5
6
7
void recordCommands(
    KDGpu::RenderPassCommandRecorder * recorder,
    KDGpu::Extent2D extent,
    uint32_t inFlightIndex,
    KDGpu::RenderPass * currentRenderPass =nullptr,
    int lastSubpassIndex =0
)

Updated on 2024-07-23 at 00:07:38 +0000