History

DRY up stage classes with templates

HifiExperiments committed 2 years ago

Commit 9da9eb31 parent 9da839f39 files · +373 −802Browse files

Showing the changes to libraries/render-utils/src/ToneMapAndResampleTask.cpp (1 of 39 files). Show all

Unified · Split

libraries/render-utils/src/ToneMapAndResampleTask.cpp+3−2
@@ -4,6 +4,7 @@ · 3 unmodified lines
4//4//
5// Created by Anna Brewer on 7/3/19.5// Created by Anna Brewer on 7/3/19.
6// Copyright 2019 High Fidelity, Inc.6// Copyright 2019 High Fidelity, Inc.
7// Copyright 2024 Overte e.V.
7//8//
8// Distributed under the Apache License, Version 2.0.9// Distributed under the Apache License, Version 2.0.
9// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html10// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
@@ -74,8 +75,8 @@ void ToneMapAndResample::run(const RenderContextPointer& renderContext, const In · 64 unmodified lines
74 75
75 const auto& tonemappingStage = renderContext->_scene->getStage<TonemappingStage>();76 const auto& tonemappingStage = renderContext->_scene->getStage<TonemappingStage>();
76 graphics::TonemappingPointer tonemapping;77 graphics::TonemappingPointer tonemapping;
77 if (tonemappingStage && tonemappingFrame->_tonemappings.size()) {78 if (tonemappingStage && tonemappingFrame->_elements.size()) {
78 tonemapping = tonemappingStage->getTonemapping(tonemappingFrame->_tonemappings.front());79 tonemapping = tonemappingStage->getElement(tonemappingFrame->_elements.front());
79 }80 }
80 81
81 if (_debug) {82 if (_debug) {