HelloTriangle¶
#include <hello_triangle.h>
Inherits from KDGpuExample::SimpleExampleEngineLayer, KDGpuExample::SimpleExampleEngineLayer, KDGpuExample::AdvancedExampleEngineLayer, KDGpuExample::ExampleEngineLayer, KDGpuExample::EngineLayer, KDFoundation::Object
Protected Functions¶
| Name | |
|---|---|
| virtual void | initializeScene() override |
| virtual void | cleanupScene() override |
| virtual void | updateScene() override [1] |
| virtual void | render() override [2] |
| virtual void | resize() override [1] |
| virtual void | initializeScene() override |
| virtual void | cleanupScene() override |
| virtual void | updateScene() override |
| virtual void | render() override |
| virtual void | resize() override |
| virtual void | initializeScene() override |
| virtual void | cleanupScene() override |
| virtual void | updateScene() override |
| virtual void | render() override |
| virtual void | resize() override |
Additional inherited members¶
Public Functions inherited from KDGpuExample::SimpleExampleEngineLayer
| Name | |
|---|---|
| SimpleExampleEngineLayer() =default | |
| ~SimpleExampleEngineLayer() override |
Protected Functions inherited from KDGpuExample::SimpleExampleEngineLayer
| Name | |
|---|---|
| virtual void | update() override |
| void | event(KDFoundation::EventReceiver * target, KDFoundation::Event * ev) override |
Public Functions inherited from KDGpuExample::SimpleExampleEngineLayer
| Name | |
|---|---|
| SimpleExampleEngineLayer() =default | |
| ~SimpleExampleEngineLayer() override |
Protected Functions inherited from KDGpuExample::SimpleExampleEngineLayer
| Name | |
|---|---|
| virtual void | update() override |
| void | event(KDFoundation::EventReceiver * target, KDFoundation::Event * ev) override |
Public Functions inherited from KDGpuExample::AdvancedExampleEngineLayer
| Name | |
|---|---|
| AdvancedExampleEngineLayer() =default | |
| ~AdvancedExampleEngineLayer() override =default |
Protected Functions inherited from KDGpuExample::AdvancedExampleEngineLayer
| Name | |
|---|---|
| virtual void | onAttached() override |
| virtual void | onDetached() override |
| virtual void | update() override |
Protected Attributes inherited from KDGpuExample::AdvancedExampleEngineLayer
| Name | |
|---|---|
| std::array< Fence, MAX_FRAMES_IN_FLIGHT > | m_frameFences |
Public Functions inherited from KDGpuExample::ExampleEngineLayer
| Name | |
|---|---|
| ExampleEngineLayer() | |
| ~ExampleEngineLayer() override | |
| KDGpuKDGui::View * | window() |
| void | uploadBufferData(const KDGpu::BufferUploadOptions & options) |
| void | uploadTextureData(const KDGpu::TextureUploadOptions & options) |
Protected Functions inherited from KDGpuExample::ExampleEngineLayer
| Name | |
|---|---|
| virtual void | drawImGuiOverlay(ImGuiContext * ctx) |
| virtual void | renderImGuiOverlay(KDGpu::RenderPassCommandRecorder * recorder, uint32_t inFlightIndex =0, KDGpu::RenderPass * currentRenderPass =nullptr, int lastSubpassIndex =0) |
| void | registerImGuiOverlayDrawFunction(const std::function< void(ImGuiContext *)> & func) |
| void | clearImGuiOverlayDrawFunctions() |
| void | recreateImGuiOverlay() |
| virtual void | onAttached() override |
| virtual void | onDetached() override |
| virtual void | update() override |
| void | event(KDFoundation::EventReceiver * target, KDFoundation::Event * ev) override |
| virtual void | recreateSwapChain() |
| void | recreateDepthTexture() |
| void | recreateSampleDependentResources() |
| void | releaseStagingBuffers() |
Protected Attributes inherited from KDGpuExample::ExampleEngineLayer
Public Functions inherited from KDGpuExample::EngineLayer
| Name | |
|---|---|
| ~EngineLayer() override | |
| const Engine * | engine() const |
| Engine * | engine() |
Protected Functions inherited from KDGpuExample::EngineLayer
| Name | |
|---|---|
| virtual void | onAttached() |
| virtual void | onDetached() |
| virtual void | update() |
Friends inherited from KDGpuExample::EngineLayer
| Name | |
|---|---|
| class | Engine |
Protected Functions Documentation¶
function initializeScene¶
1 | |
Reimplements: KDGpuExample::ExampleEngineLayer::initializeScene
[3]
[4]
[4]
[5]
[5]
[3]
[6]
[6]
[7]
[7]
[8]
[8]
[9]
[9]
[10]
[10]
[11]
[11]
[12]
[12]
function cleanupScene¶
1 | |
Reimplements: KDGpuExample::ExampleEngineLayer::cleanupScene
[2]
[2]
function updateScene¶
1 | |
[1]
Reimplements: KDGpuExample::ExampleEngineLayer::updateScene
function render¶
1 | |
[2]
Reimplements: KDGpuExample::ExampleEngineLayer::render
[13]
[13]
function resize¶
1 | |
[1]
Reimplements: KDGpuExample::ExampleEngineLayer::resize
function initializeScene¶
1 | |
Reimplements: KDGpuExample::ExampleEngineLayer::initializeScene
[3]
[4]
[4]
[5]
[5]
[3]
[6]
[6]
[7]
[7]
[8]
[8]
[9]
[9]
[10]
[10]
[11]
[11]
[12]
[12]
function cleanupScene¶
1 | |
Reimplements: KDGpuExample::ExampleEngineLayer::cleanupScene
[2]
[2]
function updateScene¶
1 | |
Reimplements: KDGpuExample::ExampleEngineLayer::updateScene
function render¶
1 | |
Reimplements: KDGpuExample::ExampleEngineLayer::render
[13]
[13]
function resize¶
1 | |
Reimplements: KDGpuExample::ExampleEngineLayer::resize
function initializeScene¶
1 | |
Reimplements: KDGpuExample::ExampleEngineLayer::initializeScene
[3]
[4]
[4]
[5]
[5]
[3]
[6]
[6]
[7]
[7]
[8]
[8]
[9]
[9]
[10]
[10]
[11]
[11]
[12]
[12]
function cleanupScene¶
1 | |
Reimplements: KDGpuExample::ExampleEngineLayer::cleanupScene
[2]
[2]
function updateScene¶
1 | |
Reimplements: KDGpuExample::ExampleEngineLayer::updateScene
function render¶
1 | |
Reimplements: KDGpuExample::ExampleEngineLayer::render
[13]
[13]
function resize¶
1 | |
Reimplements: KDGpuExample::ExampleEngineLayer::resize
Updated on 2025-11-02 at 00:01:41 +0000