|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
One scalar/vector param's slot in a shader's std140 MaterialConstants block. More...
#include <MaterialStore.hpp>
Public Attributes | |
| std::string | name |
| u32 | offset = 0 |
| std140 byte offset within the block. | |
| u32 | arity = 1 |
| Float component count (1..4); textures are not slots. | |
| f32 | defaults [4] = {0, 0, 0, 0} |
| Shader-declared default(...); the block's initial value. | |
| i8 | worldUnits = 0 |
| 1 a length, -1 a rate per length: the default is at 100 units a metre (ShaderProperty::worldUnits). | |
One scalar/vector param's slot in a shader's std140 MaterialConstants block.
Definition at line 56 of file MaterialStore.hpp.
| u32 esengine::MaterialParamSlot::arity = 1 |
Float component count (1..4); textures are not slots.
Definition at line 59 of file MaterialStore.hpp.
Referenced by esengine::MaterialStore::bindThrough(), esengine::MaterialStore::layoutOf(), and esengine::MaterialStore::setUniform().
| f32 esengine::MaterialParamSlot::defaults[4] = {0, 0, 0, 0} |
Shader-declared default(...); the block's initial value.
Definition at line 60 of file MaterialStore.hpp.
Referenced by esengine::MaterialStore::layoutOf().
| std::string esengine::MaterialParamSlot::name |
Definition at line 57 of file MaterialStore.hpp.
| u32 esengine::MaterialParamSlot::offset = 0 |
std140 byte offset within the block.
Definition at line 58 of file MaterialStore.hpp.
Referenced by esengine::MaterialStore::bindThrough(), esengine::MaterialStore::paramValue(), and esengine::MaterialStore::setUniform().
| i8 esengine::MaterialParamSlot::worldUnits = 0 |
1 a length, -1 a rate per length: the default is at 100 units a metre (ShaderProperty::worldUnits).
Definition at line 61 of file MaterialStore.hpp.
Referenced by esengine::MaterialStore::layoutOf().