KDGpuExample::ExampleEngineLayer
Module: KDGpuExample API
ExampleEngineLayer ... 
#include <KDGpuExample/example_engine_layer.h>
Inherits from KDGpuExample::EngineLayer, KDFoundation::Object
Inherited by KDGpuExample::AdvancedExampleEngineLayer, KDGpuExample::SimpleExampleEngineLayer
Public Functions
Protected Functions
Protected Attributes
Additional inherited members
Public Functions inherited from KDGpuExample::EngineLayer
Friends inherited from KDGpuExample::EngineLayer
Public Functions Documentation
function ExampleEngineLayer
function ~ExampleEngineLayer
 | ~ExampleEngineLayer() override
  | 
 
function window
 | inline KDGpuKDGui::View * window()
  | 
 
function uploadBufferData
 | void uploadBufferData(
    const KDGpu::BufferUploadOptions & options
)
  | 
 
function uploadTextureData
 | void uploadTextureData(
    const KDGpu::TextureUploadOptions & options
)
  | 
 
Protected Functions Documentation
function initializeScene
 | virtual void initializeScene() =0
  | 
 
Reimplemented by: BindGroupIndexing::initializeScene, BindGroupPartiallyBound::initializeScene, BufferReference::initializeScene, ComputeOitTransparency::initializeScene, ComputeParticles::initializeScene, DepthBias::initializeScene, DepthTextureLookup::initializeScene, DynamicUBOTriangles::initializeScene, HelloSphereMesh::initializeScene, HelloSphereRt::initializeScene, HelloTriangle::initializeScene, HelloTriangle::initializeScene, HelloTriangle::initializeScene, HelloTriangleMSAA::initializeScene, HelloTriangleRt::initializeScene, HostImageCopy::initializeScene, HybridRasterRt::initializeScene, MultiView::initializeScene, MultiViewStereo::initializeScene, RenderToTexture::initializeScene, RenderToTextureSubpass::initializeScene, TexturedQuad::initializeScene, WireframeGeometry::initializeScene
function cleanupScene
 | virtual void cleanupScene() =0
  | 
 
Reimplemented by: BindGroupIndexing::cleanupScene, BindGroupPartiallyBound::cleanupScene, BufferReference::cleanupScene, ComputeOitTransparency::cleanupScene, ComputeParticles::cleanupScene, DepthBias::cleanupScene, DepthTextureLookup::cleanupScene, DynamicUBOTriangles::cleanupScene, HelloSphereMesh::cleanupScene, HelloSphereRt::cleanupScene, HelloTriangle::cleanupScene, HelloTriangle::cleanupScene, HelloTriangle::cleanupScene, HelloTriangleMSAA::cleanupScene, HelloTriangleRt::cleanupScene, HostImageCopy::cleanupScene, HybridRasterRt::cleanupScene, MultiView::cleanupScene, MultiViewStereo::cleanupScene, RenderToTexture::cleanupScene, RenderToTextureSubpass::cleanupScene, TexturedQuad::cleanupScene, WireframeGeometry::cleanupScene
function updateScene
 | virtual void updateScene() =0
  | 
 
Reimplemented by: BindGroupIndexing::updateScene, BindGroupPartiallyBound::updateScene, BufferReference::updateScene, ComputeOitTransparency::updateScene, ComputeParticles::updateScene, DepthBias::updateScene, DepthTextureLookup::updateScene, DynamicUBOTriangles::updateScene, HelloSphereMesh::updateScene, HelloSphereRt::updateScene, HelloTriangle::updateScene, HelloTriangle::updateScene, HelloTriangle::updateScene, HelloTriangleMSAA::updateScene, HelloTriangleRt::updateScene, HostImageCopy::updateScene, HybridRasterRt::updateScene, MultiView::updateScene, MultiViewStereo::updateScene, RenderToTexture::updateScene, RenderToTextureSubpass::updateScene, TexturedQuad::updateScene, WireframeGeometry::updateScene
function render
Reimplemented by: BindGroupIndexing::render, BindGroupPartiallyBound::render, BufferReference::render, ComputeOitTransparency::render, ComputeParticles::render, DepthBias::render, DepthTextureLookup::render, DynamicUBOTriangles::render, HelloSphereMesh::render, HelloSphereRt::render, HelloTriangle::render, HelloTriangle::render, HelloTriangle::render, HelloTriangleMSAA::render, HelloTriangleRt::render, HostImageCopy::render, HybridRasterRt::render, MultiView::render, MultiViewStereo::render, RenderToTexture::render, RenderToTextureSubpass::render, TexturedQuad::render, WireframeGeometry::render
function resize
Reimplemented by: BindGroupIndexing::resize, BindGroupPartiallyBound::resize, BufferReference::resize, ComputeOitTransparency::resize, ComputeParticles::resize, DepthBias::resize, DepthTextureLookup::resize, DynamicUBOTriangles::resize, HelloSphereMesh::resize, HelloSphereRt::resize, HelloTriangle::resize, HelloTriangle::resize, HelloTriangle::resize, HelloTriangleMSAA::resize, HelloTriangleRt::resize, HostImageCopy::resize, HybridRasterRt::resize, MultiView::resize, MultiViewStereo::resize, RenderToTexture::resize, RenderToTextureSubpass::resize, TexturedQuad::resize, WireframeGeometry::resize
function drawImGuiOverlay
 | virtual void drawImGuiOverlay(
    ImGuiContext * ctx
)
  | 
 
function renderImGuiOverlay
 | virtual void renderImGuiOverlay(
    KDGpu::RenderPassCommandRecorder * recorder,
    uint32_t inFlightIndex =0,
    KDGpu::RenderPass * currentRenderPass =nullptr,
    int lastSubpassIndex =0
)
  | 
 
function registerImGuiOverlayDrawFunction
 | void registerImGuiOverlayDrawFunction(
    const std::function< void(ImGuiContext *)> & func
)
  | 
 
function clearImGuiOverlayDrawFunctions
 | void clearImGuiOverlayDrawFunctions()
  | 
 
function recreateImGuiOverlay
 | void recreateImGuiOverlay()
  | 
 
function onAttached
 | virtual void onAttached() override
  | 
 
Reimplements: KDGpuExample::EngineLayer::onAttached
function onDetached
 | virtual void onDetached() override
  | 
 
Reimplements: KDGpuExample::EngineLayer::onDetached
function update
 | virtual void update() override
  | 
 
Reimplements: KDGpuExample::EngineLayer::update
Reimplemented by: KDGpuExample::SimpleExampleEngineLayer::update
function event
 | void event(
    KDFoundation::EventReceiver * target,
    KDFoundation::Event * ev
) override
  | 
 
function recreateSwapChain
 | virtual void recreateSwapChain()
  | 
 
Reimplemented by: MultiViewStereo::recreateSwapChain
function recreateDepthTexture
 | void recreateDepthTexture()
  | 
 
function recreateSampleDependentResources
 | void recreateSampleDependentResources()
  | 
 
function releaseStagingBuffers
 | void releaseStagingBuffers()
  | 
 
Protected Attributes Documentation
variable m_logger
 | std::shared_ptr< spdlog::logger > m_logger;
  | 
 
variable m_api
 | std::unique_ptr< KDGpu::GraphicsApi > m_api;
  | 
 
variable m_window
 | std::unique_ptr< KDGpuKDGui::View > m_window;
  | 
 
variable m_swapchainExtent
 | KDGpu::Extent2D m_swapchainExtent;
  | 
 
variable m_samples
 | KDBindings::Property< KDGpu::SampleCountFlagBits > m_samples { KDGpu::SampleCountFlagBits::Samples1Bit };
  | 
 
variable m_swapchainUsageFlags
 | KDGpu::TextureUsageFlags m_swapchainUsageFlags { KDGpu::TextureUsageFlagBits::ColorAttachmentBit };
  | 
 
variable m_supportedSampleCounts
 | std::vector< KDGpu::SampleCountFlagBits > m_supportedSampleCounts;
  | 
 
variable m_instance
 | KDGpu::Instance m_instance;
  | 
 
variable m_surface
 | KDGpu::Surface m_surface;
  | 
 
variable m_adapter
 | KDGpu::Adapter * m_adapter;
  | 
 
variable m_device
variable m_queue
variable m_presentMode
 | KDGpu::PresentMode m_presentMode;
  | 
 
variable m_swapchain
 | KDGpu::Swapchain m_swapchain;
  | 
 
variable m_swapchainViews
 | std::vector< KDGpu::TextureView > m_swapchainViews;
  | 
 
variable m_depthTexture
 | KDGpu::Texture m_depthTexture;
  | 
 
variable m_depthTextureView
 | KDGpu::TextureView m_depthTextureView;
  | 
 
variable m_imguiOverlay
 | std::unique_ptr< ImGuiItem > m_imguiOverlay;
  | 
 
variable m_imGuiOverlayDrawFunctions
 | std::vector< std::function< void(ImGuiContext *)> > m_imGuiOverlayDrawFunctions;
  | 
 
variable m_currentSwapchainImageIndex
 | uint32_t m_currentSwapchainImageIndex { 0 };
  | 
 
variable m_inFlightIndex
 | uint32_t m_inFlightIndex { 0 };
  | 
 
variable m_presentCompleteSemaphores
 | std::array< KDGpu::GpuSemaphore, MAX_FRAMES_IN_FLIGHT > m_presentCompleteSemaphores;
  | 
 
variable m_renderCompleteSemaphores
 | std::array< KDGpu::GpuSemaphore, MAX_FRAMES_IN_FLIGHT > m_renderCompleteSemaphores;
  | 
 
variable m_depthTextureUsageFlags
 | KDGpu::TextureUsageFlags m_depthTextureUsageFlags {};
  | 
 
variable m_stagingBuffers
 | std::vector< KDGpu::UploadStagingBuffer > m_stagingBuffers;
  | 
 
 | KDGpu::Format m_swapchainFormat { KDGpu::Format::B8G8R8A8_UNORM };
  | 
 
 | KDGpu::Format m_depthFormat;
  | 
 
variable m_compositeAlpha
 | KDGpu::CompositeAlphaFlagBits m_compositeAlpha { KDGpu::CompositeAlphaFlagBits::OpaqueBit };
  | 
 
variable m_showSurfaceCapabilities
 | bool m_showSurfaceCapabilities { false };
  | 
 
variable m_capabilitiesString
 | std::string m_capabilitiesString;
  | 
 
Updated on 2025-11-02 at 00:01:42 +0000