cad-editor/src/scene/pipeline
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 798a391207 refactor(pipeline): drop legacy per-hatch path (Phase 4-B, step 5)
The batched hatch pipeline has soaked through visibility + LOD; it's
correct on every file tested (Floor plan.dxf, UTM site plans, the
non-UTM regression case). Time to remove the parallel per-hatch
plumbing that's been sitting empty since step 3:

- `gpu_hatches: Vec<HatchGpu>` — never populated since
  `upload_hatches` switched to the batched builder; dropped.
- `hatch_pixel_scissors`, `hatch_skip_flags` — same story; dropped.
- `compute_hatch_scissors` — no longer has a consumer; dropped, with
  the render-time call removed from `Primitive::prepare`.
- Hatch render pass — the dead `else if` branch over `gpu_hatches`
  is gone; only the single batched `pass.draw(0..vertex_count, 0..1)`
  remains.
- `compute_hatch_lod` — no fallback path; if `gpu_hatch_batched` is
  `None` (empty hatch list) it just returns early.

`HatchGpu` itself stays — the wipeout pipeline still uses it. So do
`hatch_pipeline` / `hatch_bgl1`, kept around for that path.

`#[allow(dead_code)]` on the four storage-buffer fields in
`HatchBatchedGpu` — they exist only to keep the bind group's
referenced resources alive; nothing reads them directly.

Known gap left as a follow-up: per-hatch viewport scissor for paper-
space MSPACE viewports isn't ported to the batched path yet. Hatches
inside a paper-space viewport can render past the viewport border
until that's added. Hasn't surfaced as a visible regression in the
test files so far.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 20:18:06 +03:00
..
face3d_gpu.rs fix(scene): greek text rect renders filled at the text's own color 2026-05-15 16:32:27 +03:00
hatch_batched_gpu.rs refactor(pipeline): drop legacy per-hatch path (Phase 4-B, step 5) 2026-05-17 20:18:06 +03:00
hatch_gpu.rs fix(pipeline): hatch frustum cull tests AABB in wrong space 2026-05-17 15:36:15 +03:00
image_gpu.rs perf(scene): extend viewport scissor to hatch / image / wipeout passes (Phase 1.4) 2026-05-15 23:13:16 +03:00
mesh_gpu.rs perf(scene): multi-resolution mesh LOD (Phase 3.4) 2026-05-15 23:30:13 +03:00
mod.rs refactor(pipeline): drop legacy per-hatch path (Phase 4-B, step 5) 2026-05-17 20:18:06 +03:00
uniforms.rs perf(scene): hatch LOD — solid-fill substitute + sub-pixel skip (Phase 3.3) 2026-05-15 23:18:21 +03:00
viewcube.rs cargo fmt 2026-05-12 10:36:15 +03:00
wire_gpu.rs chore: remove dead UI helpers and orphan toolbar stubs 2026-05-16 00:04:44 +03:00