LegacyRenderPass.ixx File
Abstraction representing a render pass (framebuffer, attachments, etc.). More...
Included Headers
#include <memory>
#include <cassert>
#include <helios.util.log.LogManager>
#include <helios.util.log.Logger>
#include <helios.rendering.shader.UniformValueMap>
#include <helios.rendering.Viewport>
#include <helios.rendering.RenderQueue>
Namespaces Index
| namespace | helios |
| namespace | rendering |
|
Graphics rendering infrastructure. More... | |
Classes Index
| class | LegacyRenderPass |
|
Encapsulates a single rendering pass with its associated resources. More... | |
Macro Definitions Index
| #define | HELIOS_LOG_SCOPE "helios::rendering::LegacyRenderPass" |
Description
Abstraction representing a render pass (framebuffer, attachments, etc.).
Macro Definitions
HELIOS_LOG_SCOPE
|
Definition at line 20 of file LegacyRenderPass.ixx.
20#define HELIOS_LOG_SCOPE "helios::rendering::LegacyRenderPass"
File Listing
The file content with the documentation metadata removed is:
20#define HELIOS_LOG_SCOPE "helios::rendering::LegacyRenderPass"
21export namespace helios::rendering {
63 class LegacyRenderPass {
69 helios::rendering::RenderQueue renderQueue_;
77 helios::rendering::shader::UniformValueMap frameUniformValues_;
84 const helios::rendering::Viewport* viewport_;
90 inline static const helios::util::log::Logger& logger_ = helios::util::log::LogManager::loggerForScope(
95 ~LegacyRenderPass() = default;
101 LegacyRenderPass(const LegacyRenderPass&) = delete;
107 LegacyRenderPass& operator=(const LegacyRenderPass&) = delete;
112 LegacyRenderPass(LegacyRenderPass&&) noexcept = default;
117 LegacyRenderPass& operator=(LegacyRenderPass&&) noexcept = default;
120 * @brief Creates a new `LegacyRenderPass` with the specified viewport, render queue, and frame uniforms.
129 explicit LegacyRenderPass(
131 helios::rendering::RenderQueue renderQueue,
132 const helios::rendering::shader::UniformValueMap& frameUniformValues
135 viewport_(viewport),
136 renderQueue_(std::move(renderQueue)),
137 frameUniformValues_(frameUniformValues) {
139 assert(viewport_ != nullptr && "Unexpected nullptr for viewport in LegacyRenderPass constructor");
147 [[nodiscard]] const RenderQueue& renderQueue() const noexcept {
165 void setFrameUniformValues(const helios::rendering::shader::UniformValueMap& frameUniformValues) noexcept {
166 frameUniformValues_ = frameUniformValues;
174 * @return A const reference to this `LegacyRenderPass`' `UniformValueMap` for the current frame.
176 [[nodiscard]] const helios::rendering::shader::UniformValueMap& frameUniformValues() const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.