shader Namespace
Shader program management. More...
Definition
Classes Index
| class | Shader |
|
Abstract representation of a Shader program (e.g. composed of vertex/fragment shader). More... | |
| class | UniformValueMap |
|
Maps uniform semantics to their values for shader parameter binding. More... | |
Typedefs Index
| using | UniformValue = std::variant< helios::math::mat4f, helios::math::vec4f, float, int > |
|
A type alias for the variant containing all supported uniform types. More... | |
Enumerations Index
| enum class | UniformSemantics { ... } |
|
Enumeration of semantic identifiers for shader uniform variables. More... | |
Description
Shader program management.
This namespace provides shader program management, uniform semantics, and value mapping for shader parameter configuration in the rendering pipeline. Manages shader programs and their parameters, providing a type-safe interface for configuring shader uniforms and semantics.
Typedefs
UniformValue
|
A type alias for the variant containing all supported uniform types.
- See Also
[Str22, 100]
Definition at line 25 of file UniformValueMap.ixx.
Enumerations
UniformSemantics
| strong |
Enumeration of semantic identifiers for shader uniform variables.
- Enumeration values
`UniformSemantics` provides strongly-typed identifiers for standard uniform variables passed to shaders. These semantics abstract the actual uniform names, allowing the rendering pipeline to work with meaningful identifiers.
## Categories
- **Transform Matrices:** `ModelMatrix`, `ViewMatrix`, `ProjectionMatrix`
- **Material Properties:** `MaterialBaseColor`, `MaterialRoughness`
- **Text Rendering:** `TextTexture`, `TextColor`
- **Time Values:** `deltaTime`, `totalTime`
## Usage
```cpp UniformValueMap uniforms; uniforms.set(UniformSemantics::ModelMatrix, modelMat); uniforms.set(UniformSemantics::MaterialBaseColor, vec4f{1.0f, 0.0f, 0.0f, 1.0f}); ```
- See Also
Definition at line 36 of file UniformSemantics.ixx.
The documentation for this namespace was generated from the following files:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.