Skip to content

KDGpuExample::SimpleExampleEngineLayer

Module: KDGpuExample API

SimpleExampleEngineLayer ...

#include <KDGpuExample/simple_example_engine_layer.h>

Inherits from KDGpuExample::ExampleEngineLayer, KDGpuExample::EngineLayer, KDFoundation::Object

Inherited by BindGroupIndexing, BindGroupPartiallyBound, ComputeOitTransparency, ComputeParticles, DepthBias, DepthTextureLookup, DynamicUBOTriangles, HelloSphereRt, HelloTriangle, HelloTriangle, HelloTriangle, HelloTriangleMSAA, HelloTriangleRt, MultiView, MultiViewStereo, RenderToTexture, TexturedQuad

Public Functions

Protected Functions

Name
virtual void update() override
void event(KDFoundation::EventReceiver * target, KDFoundation::Event * ev) override

Additional inherited members

Public Functions inherited from KDGpuExample::ExampleEngineLayer

Protected Functions inherited from KDGpuExample::ExampleEngineLayer

Name
virtual void initializeScene() =0
virtual void cleanupScene() =0
virtual void updateScene() =0
virtual void render() =0
virtual void resize() =0
virtual void drawImGuiOverlay(ImGuiContext * ctx)
virtual void renderImGuiOverlay(RenderPassCommandRecorder * recorder, uint32_t inFlightIndex =0)
void registerImGuiOverlayDrawFunction(const std::function< void(ImGuiContext *)> & func)
void clearImGuiOverlayDrawFunctions()
void recreateImGuiOverlay()
virtual void onAttached() override
virtual void onDetached() override
virtual void recreateSwapChain()
void recreateDepthTexture()
void recreateSampleDependentResources()
void uploadBufferData(const BufferUploadOptions & options)
void uploadTextureData(const TextureUploadOptions & options)
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()

Friends inherited from KDGpuExample::EngineLayer

Name
class Engine

Public Functions Documentation

function SimpleExampleEngineLayer

1
SimpleExampleEngineLayer() =default

function ~SimpleExampleEngineLayer

1
~SimpleExampleEngineLayer() override

Protected Functions Documentation

function update

1
virtual void update() override

Reimplements: KDGpuExample::ExampleEngineLayer::update

function event

1
2
3
4
void event(
    KDFoundation::EventReceiver * target,
    KDFoundation::Event * ev
) override

Updated on 2025-04-12 at 00:01:45 +0000