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()
|
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, HelloTriangle::initializeScene, HelloTriangleMSAA::initializeScene, HelloTriangleRt::initializeScene, HybridRasterRt::initializeScene, MultiView::initializeScene, MultiViewStereo::initializeScene, RenderToTexture::initializeScene, RenderToTextureSubpass::initializeScene, TexturedQuad::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, HelloTriangle::cleanupScene, HelloTriangleMSAA::cleanupScene, HelloTriangleRt::cleanupScene, HybridRasterRt::cleanupScene, MultiView::cleanupScene, MultiViewStereo::cleanupScene, RenderToTexture::cleanupScene, RenderToTextureSubpass::cleanupScene, TexturedQuad::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, HelloTriangle::updateScene, HelloTriangleMSAA::updateScene, HelloTriangleRt::updateScene, HybridRasterRt::updateScene, MultiView::updateScene, MultiViewStereo::updateScene, RenderToTexture::updateScene, RenderToTextureSubpass::updateScene, TexturedQuad::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, HelloTriangle::render, HelloTriangleMSAA::render, HelloTriangleRt::render, HybridRasterRt::render, MultiView::render, MultiViewStereo::render, RenderToTexture::render, RenderToTextureSubpass::render, TexturedQuad::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, HelloTriangle::resize, HelloTriangleMSAA::resize, HelloTriangleRt::resize, HybridRasterRt::resize, MultiView::resize, MultiViewStereo::resize, RenderToTexture::resize, RenderToTextureSubpass::resize, TexturedQuad::resize
function drawImGuiOverlay
| virtual void drawImGuiOverlay(
ImGuiContext * ctx
)
|
function renderImGuiOverlay
| virtual void renderImGuiOverlay(
RenderPassCommandRecorder * recorder,
uint32_t inFlightIndex =0,
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 uploadBufferData
| void uploadBufferData(
const BufferUploadOptions & options
)
|
function uploadTextureData
| void uploadTextureData(
const TextureUploadOptions & options
)
|
function releaseStagingBuffers
| void releaseStagingBuffers()
|
Protected Attributes Documentation
variable m_logger
| std::shared_ptr< spdlog::logger > m_logger;
|
variable m_api
| std::unique_ptr< GraphicsApi > m_api;
|
variable m_window
| std::unique_ptr< KDGpuKDGui::View > m_window;
|
variable m_swapchainExtent
| Extent2D m_swapchainExtent;
|
variable m_samples
| KDBindings::Property< SampleCountFlagBits > m_samples { SampleCountFlagBits::Samples1Bit };
|
variable m_swapchainUsageFlags
| TextureUsageFlags m_swapchainUsageFlags { TextureUsageFlagBits::ColorAttachmentBit };
|
variable m_supportedSampleCounts
| std::vector< SampleCountFlagBits > m_supportedSampleCounts;
|
variable m_instance
variable m_surface
variable m_device
variable m_queue
variable m_presentMode
| PresentMode m_presentMode;
|
variable m_swapchain
variable m_swapchainViews
| std::vector< TextureView > m_swapchainViews;
|
variable m_depthTexture
variable m_depthTextureView
| 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< GpuSemaphore, MAX_FRAMES_IN_FLIGHT > m_presentCompleteSemaphores;
|
variable m_renderCompleteSemaphores
| std::array< GpuSemaphore, MAX_FRAMES_IN_FLIGHT > m_renderCompleteSemaphores;
|
variable m_depthTextureUsageFlags
| TextureUsageFlags m_depthTextureUsageFlags {};
|
variable m_stagingBuffers
| std::vector< UploadStagingBuffer > m_stagingBuffers;
|
| Format m_swapchainFormat { Format::B8G8R8A8_UNORM };
|
variable m_compositeAlpha
| CompositeAlphaFlagBits m_compositeAlpha { CompositeAlphaFlagBits::OpaqueBit };
|
variable m_showSurfaceCapabilities
| bool m_showSurfaceCapabilities { false };
|
variable m_capabilitiesString
| std::string m_capabilitiesString;
|
Updated on 2024-12-29 at 00:12:08 +0000