Wave 311/509: Fillet rig: a regression gate on every pull request that touches fillet code (and 2 more)

3 commits, squashed; the originals stay reachable from tag archive/merge-main-develop.

- 517fc01dc jyviko: Fillet rig: a regression gate on every pull request that touches fillet code
- b91ad9de2 jyviko: Splines: every degree a B-rep record holds is evaluated, so a G4 blend of degree 9 gets its pcurves
- 175b4f2ac jyviko: GPU tessellation: the shader's basis slots follow the CPU evaluator's highest degree

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
jyviko
2026-10-28 21:41:23 -04:00
parent 18ac5bfd45
commit 6537aaa0d0
10 changed files with 328 additions and 34 deletions
+2 -2
View File
@@ -7,8 +7,8 @@
const PLANE: u32 = 0u;
const NURBS: u32 = 1u;
const REVOLVED: u32 = 2u;
// Basis slots for the highest degree (MAX_SPLINE_DEGREE = 7).
const W: u32 = 8u;
// Basis slots for the highest degree (MAX_SPLINE_DEGREE = 16).
const W: u32 = 17u;
struct Surface {
kind: u32,
+8
View File
@@ -96,6 +96,14 @@ fn the_hlsl_for_fxc_has_no_arrays_fxc_must_unroll_loops_for() {
}
}
/// The shader's basis slots hold the highest degree the CPU evaluator takes, so every surface
/// the CPU evaluates the GPU evaluates too.
#[test]
fn the_shader_takes_every_degree_the_cpu_evaluator_does() {
let slots = format!("const W: u32 = {}u;", solidcraft_geom::bspline::MAX_SPLINE_DEGREE + 1);
assert!(SHADER.contains(&slots), "tess.wgsl must declare `{slots}`");
}
fn ok<T, E: std::fmt::Debug>(r: std::result::Result<T, E>) -> T {
match r {
Ok(v) => v,