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()
void createPipeline(KDGpu::SampleCountFlagBits samples, KDGpu::Format colorFormat, KDGpu::Format depthFormat)
bool updateGeometryBuffers(uint32_t inFlightIndex)
void recordCommands(KDGpu::RenderPassCommandRecorder * recorder, KDGpu::Extent2D extent, uint32_t inFlightIndex)

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 createPipeline

1
2
3
4
5
void createPipeline(
    KDGpu::SampleCountFlagBits samples,
    KDGpu::Format colorFormat,
    KDGpu::Format depthFormat
)

function updateGeometryBuffers

1
2
3
bool updateGeometryBuffers(
    uint32_t inFlightIndex
)

function recordCommands

1
2
3
4
5
void recordCommands(
    KDGpu::RenderPassCommandRecorder * recorder,
    KDGpu::Extent2D extent,
    uint32_t inFlightIndex
)

Updated on 2024-05-27 at 00:10:35 +0000