|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#include <ShaderParser.hpp>
Public Attributes | |
| std::string | name |
| Uniform name. | |
| ShaderPropertyType | type |
| Property type. | |
| std::string | defaultValue |
| Default value as string (comma-separated for vectors). | |
| std::string | displayName |
| Display name for editor. | |
| bool | fromParam = false |
| i32 | std140Offset = -1 |
| i32 | textureUnit = -1 |
| Sampler unit for a texture param (>= MATERIAL_TEXTURE_UNIT_BASE), or -1 otherwise. | |
| bool | layered = false |
| bool | hasRange = false |
| f32 | rangeMin = 0.0f |
| f32 | rangeMax = 1.0f |
| std::string | ui |
| i8 | worldUnits = 0 |
Definition at line 96 of file ShaderParser.hpp.
| std::string esengine::resource::ShaderProperty::defaultValue |
Default value as string (comma-separated for vectors).
Definition at line 99 of file ShaderParser.hpp.
| std::string esengine::resource::ShaderProperty::displayName |
Display name for editor.
Definition at line 100 of file ShaderParser.hpp.
| bool esengine::resource::ShaderProperty::fromParam = false |
True when declared via #pragma param (the modern path: ShaderParser owns the GLSL codegen + std140 layout). False for the legacy #pragma properties block, which is reflection-only — the shader declares those uniforms itself, so they are not codegen'd.
Definition at line 105 of file ShaderParser.hpp.
| bool esengine::resource::ShaderProperty::hasRange = false |
Optional editor metadata (range slider bounds, UI hint). Drives the inspector panel; not used in codegen. hasRange == false leaves the field a plain numeric input.
Definition at line 118 of file ShaderParser.hpp.
| bool esengine::resource::ShaderProperty::layered = false |
A texture param declared textureArray: a 2D texture array, declared sampler2DArray / texture_2d_array<f32> and sampled with a layer index. Everything else is as for texture.
Definition at line 114 of file ShaderParser.hpp.
| std::string esengine::resource::ShaderProperty::name |
Uniform name.
Definition at line 97 of file ShaderParser.hpp.
Referenced by esengine::resource::ShaderParser::parse().
| f32 esengine::resource::ShaderProperty::rangeMax = 1.0f |
Definition at line 120 of file ShaderParser.hpp.
| f32 esengine::resource::ShaderProperty::rangeMin = 0.0f |
Definition at line 119 of file ShaderParser.hpp.
| i32 esengine::resource::ShaderProperty::std140Offset = -1 |
Byte offset of this param inside the std140 MaterialConstants block, or -1 for texture params (which are samplers, not block members).
Definition at line 109 of file ShaderParser.hpp.
| i32 esengine::resource::ShaderProperty::textureUnit = -1 |
Sampler unit for a texture param (>= MATERIAL_TEXTURE_UNIT_BASE), or -1 otherwise.
Definition at line 111 of file ShaderParser.hpp.
| ShaderPropertyType esengine::resource::ShaderProperty::type |
Property type.
Definition at line 98 of file ShaderParser.hpp.
| std::string esengine::resource::ShaderProperty::ui |
UI hint, e.g. "slider", "color" (free-form).
Definition at line 121 of file ShaderParser.hpp.
| i8 esengine::resource::ShaderProperty::worldUnits = 0 |
unit(length) (1) or unit(perLength) (-1): the default and range are written at 100 world units a metre and follow the project's units per metre where a material leaves the param unset. 0 is a plain number.
Definition at line 124 of file ShaderParser.hpp.