608d1a70a7
Three stages, each a WGSL function with a fixed signature that Horizon calls inside its own pass: sky (fn sky(input: SkyInput) -> vec4<f32>), material (fn material(input: MaterialInput) -> Surface) and post (fn post(input: PostInput) -> vec4<f32>). A stage's WGSL is a generated prelude (the frame uniform, the stage's structs, its resources in bind group 3, the post helpers), the pack's shared files, its own file, then the entry points; each part is located so errors point at the pack's file and line. The frame is the Rust struct the renderer will upload; its WGSL, its offsets and docs/api/shaders-reference.md are generated from it, and tests check that the preludes compile, that naga's layout of the WGSL is the Rust layout, that the sample pack's stages compile, and that the reference is up to date. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The schema 1 sample read by tests/schema.rs; tests/reference.rs compiles its stages.