Skip to main content

Module materials

Module materials 

Source
Expand description

Wire-format material arena and its resolution into core::Material values. Composite materials reference other arena entries by index rather than duplicating them inline, mirroring core’s own arena-of-indices philosophy.

Enums§

MaterialSpec
One arena entry. Composite variants reference other entries by their u32 index into the same arena, resolved by resolve_materials.
Pinching4DmgCycSpec
Wire-format mirror of core::Pinching4DmgCyc (which carries no serde derives of its own — core stays free of any wasm/serde awareness, see decode.rs’s module doc comment).

Functions§

resolve_materials
Resolves every entry of a wire-format material arena into a core Material, in arena order. Composite entries may reference any other arena index (not just earlier ones); a reference cycle is rejected explicitly rather than overflowing the call stack.