OpenGLUniformLocationMap.ixx File
Maps shader uniform semantics to OpenGL uniform locations. More...
Included Headers
#include <array>
#include <optional>
#include <cassert>
#include <format>
#include <utility>
#include <helios.util.log.Logger>
#include <helios.util.log.LogManager>
#include <helios.rendering.shader.UniformSemantics>
Namespaces Index
| namespace | helios |
| namespace | ext |
|
Platform-specific extensions and backend implementations. More... | |
| namespace | opengl |
|
OpenGL-specific implementations. More... | |
| namespace | rendering |
|
OpenGL rendering implementations. More... | |
| namespace | shader |
|
OpenGL shader implementations. More... | |
Classes Index
| class | OpenGLUniformLocationMap |
|
Manages the mapping between OpenGL uniform semantics and their locations in an underlying OpenGL shader. More... | |
Macro Definitions Index
| #define | HELIOS_LOG_SCOPE "helios::ext::opengl::rendering::shader::OpenGLUniformLocationMap" |
Description
Maps shader uniform semantics to OpenGL uniform locations.
Macro Definitions
HELIOS_LOG_SCOPE
|
Definition at line 20 of file OpenGLUniformLocationMap.ixx.
20#define HELIOS_LOG_SCOPE "helios::ext::opengl::rendering::shader::OpenGLUniformLocationMap"
File Listing
The file content with the documentation metadata removed is:
20#define HELIOS_LOG_SCOPE "helios::ext::opengl::rendering::shader::OpenGLUniformLocationMap"
21export namespace helios::ext::opengl::rendering::shader {
31 class OpenGLUniformLocationMap final {
44 std::array<int, std::to_underlying(helios::rendering::shader::UniformSemantics::size_)> map_ = {};
49 inline static const helios::util::log::Logger& logger_ = helios::util::log::LogManager::loggerForScope(
54 ~OpenGLUniformLocationMap() = default;
61 static_cast<size_t>(helios::rendering::shader::UniformSemantics::size_)
67 OpenGLUniformLocationMap() = default;
81 helios::rendering::shader::UniformSemantics uniformSemantics,
107 [[nodiscard]] int get(helios::rendering::shader::UniformSemantics uniformSemantics) const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.