Skip to content

feat(runtime,webgpu): the native runtime and the webgpu renderer from doodlewind/ThreeRT-dev - #298

Merged
doodlewind merged 7 commits into
mainfrom
merge/threert-dev-runtime
Dec 1, 2026
Merged

doodlewind merged 7 commits into
mainfrom
merge/threert-dev-runtime

Conversation

@doodlewind

@doodlewind doodlewind commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Brings the work merged on the fork doodlewind/ThreeRT-dev (its PRs #1–#6, plus one unmerged fix) into meshy-dev/ThreeRT. The seven commits are cherry-picked onto main (844381b) unchanged; there were no conflicts.

Commit From What
8b5b322 doodlewind#1 docs, site: one engine, two renderers (path, webgpu); docs/RENDERING-METHODS.md (supersedes #289)
e0c6ef9 doodlewind#2 runtime/ (threert-jsc, threert-rt, threert-canvas2d, threert-net, threert-pocket-host, runtime/js/) and webgpu/ (threert-webgpu, sample, webgpu-shot), extracted from pocket-nexus/pocket-agents-island#28; tools/build.ts --renderer, tools/check-webgpu-gate.ts; CI job webgpu (macOS)
311cc17 doodlewind#3 Linux backend for the runtime (WebKitGTK JavaScriptCore, Vulkan, tiny-skia / cosmic-text / image); CI job webgpu-linux
7ceb4ca doodlewind#4 portable set_font_dir re-entrant lock; non-macOS dead_code warnings
acb38f2 doodlewind#5 pocket-host: fractional HiDPI and tiling-WM resizes via resize_embedded_gpu
4dc8da9 doodlewind#6 net: Linux gsettings proxy; webgpu: WindowGpuCanvas fallback size
0d936c2 fork branch fix/portable-canvas2d-text-align portable Canvas 2D textAlign: the JS enum order (start, end, left, right, center) and RTL, as the macOS backend already maps it

renderer/ (the path renderer) is untouched. PocketJS crates are pinned to pocket-nexus/pocketjs 72b7d9a (on main, #775).

Not brought over from the fork: denoise-exposure-reset (its commit says "WIP (not to merge as is)"). Every other fork branch is a topic branch whose PR is already merged here.

Validation (macOS, Apple M5)

Run on this branch (0d936c2):

  • cd runtime && cargo test --release --locked: 10 passed (threert-canvas2d 3, threert-net 7). The portable-backend tests, including the new textAlign ones, compile only off macOS; the webgpu-linux job runs them.
  • cd webgpu && cargo test --release --locked: 14 passed (13 unit, 1 Metal integration), 1 ignored
  • node tools/build.ts --renderer webgpu: threert-webgpu-sample 2.99 MiB, webgpu-shot 2.99 MiB; runtime.js 112.5 KiB, sample.js 801.2 KiB
  • node tools/check-webgpu-gate.ts --render: JS layering OK (10 files, 0 forbidden imports); cargo tree 89 crates, 0 path-tracer crates; size 2.99 MiB ≤ 4.50 MiB; headless Metal render 640×480, coverage 99.9 %
  • npm run typecheck: OK
  • npm test: 324 pass, 0 fail, 1 skipped
  • pocket-nexus/pocket-agents-island apps/desktop built and tested against this commit (see that repository's repin PR).

After merge

🤖 Generated with Claude Code

doodlewind and others added 7 commits November 30, 2026 15:25
* docs: plan a Raster rendering method next to Path Traced

One engine, two rendering methods chosen per build: Path Traced (today's
renderer) and Raster (three.js's own WebGPURenderer running natively on
navigator.gpu over wgpu). States the names, the crate layout
(threert-runtime / threert-raster / threert-path, dependencies one way),
the size gate for Raster builds, what moves from pocket-agents-island and
what stays the same for Path Traced users. Plan only; no code moves yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: state the Raster app's measured size in the README line

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: the Raster app's current measurements

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs,site: unify ThreeRT branding around path and webgpu renderers

---------

Co-authored-by: doodlewind <doodlewind@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… build CLI and CI gates (#2)

Co-authored-by: doodlewind <doodlewind@gmail.com>
Co-authored-by: doodlewind <doodlewind@gmail.com>
…nt_dir and silence non-macOS dead_code warnings (#4)

Co-authored-by: doodlewind <doodlewind@gmail.com>
…resize_embedded_gpu (#5)

Co-authored-by: doodlewind <doodlewind@gmail.com>
…Canvas fallback size (#6)

Co-authored-by: doodlewind <doodlewind@gmail.com>
@doodlewind
doodlewind merged commit 2a023a1 into main Dec 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant