OpenGLUniformLocationComponent Struct Template
Stores resolved OpenGL uniform locations for one shader/resource handle. More...
Declaration
Public Constructors Index
template <typename THandle, typename TUniformScope> | |
| OpenGLUniformLocationComponent () | |
|
Constructs the cache and initializes all entries to "not found" (-1). More... | |
Public Member Attributes Index
template <typename THandle, typename TUniformScope> | |
| std::array< GLint, UniformSemanticsCount > | locations {-1} |
|
Cached uniform locations indexed by UniformSemantics. More... | |
Public Static Attributes Index
template <typename THandle, typename TUniformScope> | |
| static constexpr auto | UniformSemanticsCount = ... |
|
Number of supported uniform semantics. More... | |
Description
Stores resolved OpenGL uniform locations for one shader/resource handle.
- Template Parameters
-
THandle Owner handle type used by ECS composition.
TUniformScope Uniform lifetime scope tag (for example pass or draw scope).
Definition at line 25 of file OpenGLUniformLocationComponent.ixx.
Public Constructors
OpenGLUniformLocationComponent()
| inline |
Constructs the cache and initializes all entries to "not found" (-1).
Definition at line 42 of file OpenGLUniformLocationComponent.ixx.
Reference helios::opengl::components::OpenGLUniformLocationComponent< THandle, TUniformScope >::locations.
Public Member Attributes
locations
|
Cached uniform locations indexed by UniformSemantics.
Definition at line 37 of file OpenGLUniformLocationComponent.ixx.
Referenced by helios::opengl::components::OpenGLUniformLocationComponent< THandle, TUniformScope >::OpenGLUniformLocationComponent.
Public Static Attributes
UniformSemanticsCount
| constexpr static |
Number of supported uniform semantics.
- Initialiser
-
= static_cast<std::size_t>( std::to_underlying(UniformSemantics::size_) )
Definition at line 30 of file OpenGLUniformLocationComponent.ixx.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.