VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
renderPassCompose.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3//
4//
5#include "renderPassCompose.h"
6
8
9namespace visutwin::canvas
10{
12 {
13 const auto gd = device();
14 if (!gd) {
15 return;
16 }
17
18 ComposePassParams params;
21 params.cocTexture = cocTexture;
22 params.blurTexture = blurTexture;
23 params.ssaoTexture = ssaoTexture;
26 params.dofEnabled = dofEnabled;
27 params.taaEnabled = taaEnabled;
29 params.sharpness = sharpness;
30 params.toneMapping = toneMapping;
31 params.exposure = exposure;
32 // Single-pass DOF
39
45 gd->executeComposePass(params);
46 }
47}
std::shared_ptr< GraphicsDevice > device() const
Definition renderPass.h:124