Skip to content

MultiView

#include <multiview.h>

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

Protected Functions

Name
virtual void initializeScene() override
virtual void cleanupScene() override
virtual void updateScene() override
virtual void render() override
[7]
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::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

Name
std::shared_ptr< spdlog::logger > m_logger
std::unique_ptr< KDGpu::GraphicsApi > m_api
std::unique_ptr< KDGpuKDGui::View > m_window
KDGpu::Extent2D m_swapchainExtent
KDBindings::Property< KDGpu::SampleCountFlagBits > m_samples
KDGpu::TextureUsageFlags m_swapchainUsageFlags
std::vector< KDGpu::SampleCountFlagBits > m_supportedSampleCounts
KDGpu::Instance m_instance
KDGpu::Surface m_surface
KDGpu::Adapter * m_adapter
KDGpu::Device m_device
KDGpu::Queue m_queue
KDGpu::PresentMode m_presentMode
KDGpu::Swapchain m_swapchain
std::vector< KDGpu::TextureView > m_swapchainViews
KDGpu::Texture m_depthTexture
KDGpu::TextureView m_depthTextureView
std::unique_ptr< ImGuiItem > m_imguiOverlay
std::vector< std::function< void(ImGuiContext *)> > m_imGuiOverlayDrawFunctions
uint32_t m_currentSwapchainImageIndex
uint32_t m_inFlightIndex
std::array< KDGpu::GpuSemaphore, MAX_FRAMES_IN_FLIGHT > m_presentCompleteSemaphores
std::array< KDGpu::GpuSemaphore, MAX_FRAMES_IN_FLIGHT > m_renderCompleteSemaphores
KDGpu::TextureUsageFlags m_depthTextureUsageFlags
std::vector< KDGpu::UploadStagingBuffer > m_stagingBuffers
KDGpu::Format m_swapchainFormat
KDGpu::Format m_depthFormat
KDGpu::CompositeAlphaFlagBits m_compositeAlpha
bool m_showSurfaceCapabilities
std::string m_capabilitiesString

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
virtual void initializeScene() override

Reimplements: KDGpuExample::ExampleEngineLayer::initializeScene

function cleanupScene

1
virtual void cleanupScene() override

Reimplements: KDGpuExample::ExampleEngineLayer::cleanupScene

function updateScene

1
virtual void updateScene() override

Reimplements: KDGpuExample::ExampleEngineLayer::updateScene

function render

1
virtual void render() override

[7]

Reimplements: KDGpuExample::ExampleEngineLayer::render

[6]

[6]

[8]

[8]

function resize

1
virtual void resize() override

Reimplements: KDGpuExample::ExampleEngineLayer::resize


Updated on 2025-07-01 at 00:02:08 +0000