Skip to content

[GPU 16/20] Complete remaining WebGPU core APIs and feature validation #38

Open

Description

@danwalmsley

Parent epic: #22
Implementation order: 16 of 20.
Depends on: #37.

Outcome

Close the core WebGPU gaps beyond Kestrel's rendering subset so the implementation can be qualified against the full pinned standard.

Implementation

  • Use the pinned IDL/spec/CTS inventory from GPU 01 to enumerate every unimplemented or partial core API; maintain machine-readable coverage rather than assuming Kestrel exercises the surface.
  • Complete compute pipelines/passes, storage resources, indexed/indirect drawing, indirect compute, render bundles, queries and copy/clear operations not covered earlier.
  • Complete asynchronous pipeline creation, pipeline compilation error behavior, shader compilation information and WGSL language-feature reporting.
  • Implement all core descriptor/limit/usage/state validation and browser-compatible error/promise behavior. Native-only backend capabilities must not leak into JS.
  • Cover supported texture formats, view compatibility, binding layouts, dynamic offsets, depth/stencil/multisample and resource state/lifetime rules across selected backends.
  • Correctly report optional features/limits and test feature-enabled versus feature-unavailable behavior. Full core support does not imply every optional hardware feature is present.
  • Keep device/queue work ordered and independent of compositor visibility. Compute-only workloads must function without a canvas.
  • Track image/video external sources and workers as explicit dependencies in their dedicated issues; do not mark them implemented here.

Tests

  • Pinned CTS shards for every core API family through native V8.
  • Compute readback, storage-buffer/texture writes, indirect dispatch/draw, render-bundle reuse and query results.
  • Invalid descriptors/limits, usage conflicts, destroyed resources, overflow/alignment and cross-device handles.
  • Async pipeline success/failure/cancellation and WGSL diagnostics.
  • Mixed compute/render workloads, no-window operation and device loss while work is in flight.

Verification evidence

Attach before/after API inventory, per-family CTS results, feature/limit manifests for each GPU and native resource/performance traces.

Acceptance

  • All pinned core API families have implemented behavior and executable coverage.
  • Optional features are negotiated and reported accurately.
  • Compute/non-canvas operations work without RAF/presentation.
  • No native-only semantics leak into browser APIs.
  • Remaining source/worker dependencies are explicit and cannot be mistaken for complete conformance.

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