This commit is contained in:
Jérôme Bousquié
2026-09-25 14:40:47 +02:00
parent 8ece89ccba
commit 54a482e354
12 changed files with 866 additions and 370 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ fn standard_shader_is_valid_wgsl() {
.validate(&module)
.unwrap_or_else(|e| panic!("standard_shader.wgsl: validation failed: {e:?}"));
// Contract: exactly the two expected entry points vs_main / fs_main.
assert!(module.entry_points.len() >= 2, "vs_main + fs_main expected");
// Contract: at least vs_main + fs_main (+ fs_pbr since Étape 27).
assert!(module.entry_points.len() >= 3, "vs_main + fs_main + fs_pbr expected");
}
/// Parses and fully validates the embedded `shadow_shader.wgsl` shader (Step 14, D4) via naga.