struct
MaterialGraph::CompiledShader
- Module
- AssetSystem
- Header
#include "AssetSystem/Assets/MaterialGraph.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
std::string | hlsl | |
std::vector<UUID> | textures | slot-ordered, <= 8; a skipped slot (an array cannot take slot 6) is an invalid UUID |
uint32_t | arraySlotMask | Bit i set = slot i is sampled as a Texture2DArray. MBT reads it from the emitted // MATERIAL_GRAPH_ARRAY_SLOTS: line and defines MATGRAPH_ARRAY_SLOT_<i> so the pass templates declare that slot's type to match; the renderer binds an array image there. Default 0. |
std::vector<FGraphParam> | params | R4: runtime parameters, lane-assigned |
uint64_t | hash | Default 0. |
bool | valid | Default false. |
bool | hasWpo | G4: a WorldPositionOffset link exists Default false. |
float | wpoBound | Conservative interval bound on |EvaluateWorldPositionOffset| in world units, evaluated under the vertex-stage input contract (UV/normal/ view read zero, vertex color in [0,1], time unbounded but folded through sin/saturate/noise). The meshlet task stage inflates its cluster cull spheres by this so per-cluster frustum/Hi-Z kills stay sound under displacement; kWpoBoundUnbounded means the subtree could not be bounded (e.g. it scales with WorldPosition) and every geometric kill must be skipped instead. 0 when the graph has no WPO. An authored Output-node maxWpo (> 0) tightens this to min(derived, maxWpo) — sound because the same value is baked into the evaluator as a magnitude clamp, so no pass can displace past it. Default 0.0f. |
uint32_t | substrateTop | The authored slab folded to one packed G-Buffer word for the two consumers that cache one answer per surface instead of shading per pixel (see FoldSubstrateTop). 0 means "no slab here", which is what both of them rendered before Substrate existed; substrateVaries says whether that 0 means "none authored" or "authored, but it moves per pixel and those paths cannot carry it". Default 0. |
bool | substrateVaries | Default false. |
std::string | error | set when !valid (e.g. > 8 textures) |
uint64_t | errorNode | The node the refusal came from, kNoErrorNode when the compiler could not name one. Without it error is a bare sentence and every caller that wants to point at the offending node has to re-derive it from the graph — the material editor did, replaying the texture-dedup and parameter-packing rules by hand, which means a change to either rule here silently starts blaming the wrong node there. Default kNoErrorNode. |
uint32_t | paramLanes | Lanes the parameter block spans (0 with no named parameters). Four or fewer means the legacy In.Params block alone; more means the wide layout above. The upload sizes the entry by this. Default 0. |
FStaticSwitchSet | switches | The permutation this source is: every named static switch of the resolved graph, sorted by name, with the value it compiled at. |
Generated from AssetSystem/Assets/MaterialGraph.h via assetsystem.json · Nov 4, 2026Version 1.0.0