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.

ContractScope
ColourLinear scene working space, material-local encoded math, exposure ownership, and explicit SDR/UI encoding (C1–C4)
Baked lightingReceiver lighting provenance, replacing inseparable legacy bakes, visibility, and shader portability (B1–B3)
MaterialsSemantic material representation, logical (set, layer) texture references, portable sampler/layout rules, and blend ordering (M1–M4)
PrecisionCamera-relative double-precision placement, reverse-Z depth, 32-bit GPU IDs, and shared 16-byte shader ABI
StreamingAsynchronous 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.