VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
forwardRenderer.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3//
4// Created by Arnis Lektauers on 11.09.2025.
5//
6#pragma once
7
8#include "renderer.h"
9#include "../frameGraph.h"
11
12namespace visutwin::canvas
13{
24 {
25 public:
26 ForwardRenderer(const std::shared_ptr<GraphicsDevice>& device, const std::shared_ptr<Scene>& scene) : Renderer(device, scene) {}
27
28 // Builds a frame graph for the rendering of the whole frame
29 void buildFrameGraph(FrameGraph* frameGraph, LayerComposition* layerComposition);
30
31 // Adds main render pass to frame graph.
32 void addMainRenderPass(FrameGraph* frameGraph, LayerComposition* layerComposition, RenderTarget* renderTarget,
33 int startIndex, int endIndex);
34 };
35}
void buildFrameGraph(FrameGraph *frameGraph, LayerComposition *layerComposition)
void addMainRenderPass(FrameGraph *frameGraph, LayerComposition *layerComposition, RenderTarget *renderTarget, int startIndex, int endIndex)
ForwardRenderer(const std::shared_ptr< GraphicsDevice > &device, const std::shared_ptr< Scene > &scene)
Renderer(const std::shared_ptr< GraphicsDevice > &device, const std::shared_ptr< Scene > &scene)
Definition renderer.cpp:149