Skip to content

[GPU 13/20] Qualify the unchanged Kestrel CAD workflow in Avalonia and Uno #35

Open

Description

@danwalmsley

Parent epic: #22
Implementation order: 13 of 20.
Depends on: #34.

Outcome

Turn Kestrel into a reproducible end-to-end consumer gate for the complete agreed CAD workflow, not just a rendered viewport.

Implementation

  • Add thin native hosts/test harness integration using the checksum-pinned archive from GPU 01. Test the standalone bundled HTML and source-layout form without editing renderer/application logic.
  • Implement/reduce required generic browser gaps found by the workflow: layout/input/ResizeObserver/RAF, storage, Blob/File/object URLs, downloads and supported file selection/drop paths.
  • Preserve Kestrel's existing synchronous I/O fallback when Worker is absent; do not falsely advertise Worker until the worker issue is complete. Retest the worker-enabled path after that issue lands.
  • Integrate KCAD and DXF import/export through existing host resource/file services. Printing and optional external DWG conversion are intentionally excluded.
  • Exercise courtyard/fixture examples, editable entities, selection, commands/undo, pan/zoom/orbit, themes, wireframe/shaded/edged/x-ray, resize/DPR and PNG capture.
  • Add a required native consumer report with adapter/backend evidence, nine GPU results, workflow assertions and presented images; keep browser reference results independently visible.
  • Convert discovered failures into product-neutral native/WPT/scene tests before fixing WebScene, rather than Kestrel-specific patches.

Tests

  • Load, interact, edit, save KCAD, reopen, export/reimport DXF and compare supported geometry/model properties.
  • PNG decode/pixels, annotations, theme/style switches and interaction during live resize.
  • Default WebGPU mode and forced existing Canvas2D fallback; assert actual active backend.
  • Repeat the same workflows in Avalonia and Uno on all three initial desktop RIDs.
  • Engine reload, document replacement and file-operation failure/cancellation without persistent resource growth.

Verification evidence

Attach reproducible commands, fixture hashes, browser/native reports, screenshots, exchange comparison and hardware/backend identity. The archived unavailable GPU report must not be reused as current evidence.

Acceptance

  • Unmodified Kestrel's agreed CAD workflow passes on both presenters and three RIDs.
  • All nine GPU tests and actual presented-pixel assertions pass on hardware.
  • KCAD/DXF and PNG outputs are valid and independently checked.
  • Existing Canvas2D fallback remains usable.
  • Generic runtime fixes have focused regression coverage; excluded integrations are clearly documented.

Completion requirements

Link the implementation PR, exact test commands, native/runtime/framework revisions and verification artifacts before closing. Follow the epic's architecture and copy/lifetime invariants. Any unavailable mandatory hardware or missing required functionality remains incomplete, not a pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions