|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Binding points for per-material shader constants — the second tier of the engine's constant-buffer layering (after per-frame FrameConstants at binding 0). More...
#include "../../core/Types.hpp"

Go to the source code of this file.
Namespaces | |
| namespace | esengine |
Variables | |
| constexpr u32 | esengine::MATERIAL_CONSTANTS_BINDING = 1 |
| Indexed UBO binding point for the per-material MaterialConstants block. | |
| constexpr const char * | esengine::MATERIAL_CONSTANTS_BLOCK = "MaterialConstants" |
| GLSL block name; must match ShaderParser's generated block + Shader::compile lookup. | |
| constexpr u32 | esengine::MATERIAL_TEXTURE_UNIT_BASE = 8 |
| First sampler unit a material texture parameter may use (batch owns units 0..7). | |
| constexpr u32 | esengine::kSceneDepthUnit = 7 |
| The unit a PostProcess pass reads the scene's DEPTH at. | |
| constexpr u32 | esengine::kGBufferUnit = 6 |
| The unit a PostProcess pass reads the scene's surface record at: what a surface IS — octahedral normal in rg, roughness in b, metalness in a (0 = nothing wrote here). | |
Binding points for per-material shader constants — the second tier of the engine's constant-buffer layering (after per-frame FrameConstants at binding 0).
A material shader authored with #pragma param gets a layout(std140) uniform MaterialConstants { ... } block auto-generated by ShaderParser; Shader::compile links it to MATERIAL_CONSTANTS_BINDING, and the render path binds the material's UBO there per draw. Material texture parameters get sampler units starting at MATERIAL_TEXTURE_UNIT_BASE, above the batch path's 0..7 multi-texture slots.
Definition in file MaterialConstants.hpp.