Skip to main content

OpenGLUniformLocationComponent.ixx File

OpenGL component storing cached uniform locations by semantic index. More...

Included Headers

#include <glad/gl.h> #include <array> #include <cstddef> #include <utility> #include <helios.engine.rendering.shader.types.UniformSemantics>

Namespaces Index

namespacehelios
namespaceopengl
namespacecomponents
namespacetypes

Classes Index

structOpenGLUniformLocationComponent<THandle, TUniformScope>

Stores resolved OpenGL uniform locations for one shader/resource handle. More...

Description

OpenGL component storing cached uniform locations by semantic index.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7#include <glad/gl.h>
8#include <array>
9#include <cstddef>
10#include <utility>
11
12export module helios.opengl.components.OpenGLUniformLocationComponent;
13
14import helios.engine.rendering.shader.types.UniformSemantics;
15
16using namespace helios::engine::rendering::shader::types;
17export namespace helios::opengl::components {
18
24 template<typename THandle, typename TUniformScope>
26
30 static inline constexpr auto UniformSemanticsCount = static_cast<std::size_t>(
31 std::to_underlying(UniformSemantics::size_)
32 );
33
37 std::array<GLint, UniformSemanticsCount> locations{-1};
38
43 locations.fill(-1);
44 }
45 };
46
47
48
49}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.