pub fn clamp_grid(requested: (u32, u32), tier: &TierConfig) -> (u32, u32)Expand description
Clamp a preset’s requested grid into what tier will carry.
The one place the tier clamp happens. Two consumers need the same answer — the scene, which builds the vertex and index buffers, and the renderer, which sizes the per-vertex evaluation scratch — and if they disagreed the renderer would hand the scene a series of the wrong length every frame. Pure, so both can call it and a test can hold them to the same value.