Rendering Contracts
The rendering contracts specify what the render graph, device layer, and Slang shader pipeline must preserve across Metal and browser WebGPU against the WebGPU core floor. Vulkan execution remains deferred.
| Contract | Scope |
|---|---|
| Colour | Linear scene working space, material-local encoded math, exposure ownership, and explicit SDR/UI encoding (C1–C4) |
| Baked lighting | Receiver lighting provenance, replacing inseparable legacy bakes, visibility, and shader portability (B1–B3) |
| Materials | Semantic material representation, logical (set, layer) texture references, portable sampler/layout rules, and blend ordering (M1–M4) |
| Precision | Camera-relative double-precision placement, reverse-Z depth, 32-bit GPU IDs, and shared 16-byte shader ABI |
| Streaming | Asynchronous asset source semantics, pending policies by class, gameplay pin gates, and memory budgets |
Each contract separates source evidence, binding rules, and acceptance checks. Existing captures serve as backend regression baselines; intentional appearance changes require explicit re-baselining.