OpenGLUniformLocationCacheStrategy Class Template
Builds OpenGL uniform write-operation plans for one shader entity. More...
Declaration
Public Member Functions Index
template <typename TUniformScope> | |
| bool | cacheUniforms (THandle entityHandle, RenderResourceWorld &renderResourceWorld, UpdateContext &updateContext) |
|
Resolves configured uniform names and stores write operations. More... | |
Private Static Attributes Index
template <typename THandle> | |
| static const Logger & | logger_ = LogManager::loggerForScope(HELIOS_LOG_SCOPE) |
Description
Builds OpenGL uniform write-operation plans for one shader entity.
- Template Parameters
-
THandle Shader handle type.
Definition at line 40 of file OpenGLUniformLocationCacheStrategy.ixx.
Public Member Functions
cacheUniforms()
| inline |
Resolves configured uniform names and stores write operations.
- Template Parameters
-
TUniformScope Uniform lifetime scope (for example pass or draw).
- Parameters
-
entityHandle Shader entity handle.
renderResourceWorld Render-resource world containing shader entities.
updateContext Frame-local update context.
- Returns
true when mapping processing completed, otherwise false.
Reads UniformMappingsComponent, queries locations via glGetUniformLocation, appends resolved entries to OpenGLUniformWriteOperationsComponent, and removes the mapping component after processing.
Definition at line 60 of file OpenGLUniformLocationCacheStrategy.ixx.
Private Static Attributes
logger_
| static |
Definition at line 42 of file OpenGLUniformLocationCacheStrategy.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.