Skip to content

HexagonLayer: support shared compute rendering features - #11078

Merged
ibgreen merged 11 commits into
masterfrom
codex/hexagon-webgpu-parity
Nov 17, 2026
Merged

ibgreen merged 11 commits into
masterfrom
codex/hexagon-webgpu-parity

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

For #10712. Follow up of #11062 and #11063.

Background

Hexagon compute aggregation falls back for picking, scales, and extensions. Connect it to the shared pipeline while keeping completed cells visible during readback. Picking alone no longer delays explicit-domain rendering.

Change List

  • Enable Hexagon domains, callbacks, picking, scales, and percentiles
  • Share Grid/Hexagon compute setup and clipping conversion
  • Retain completed cell geometry while domains/scales update
  • Preserve format, device-limit, and JavaScript callback fallbacks
  • Unit tests
  • Documentation

Verified 106 aggregation tests (one existing skip), scoped typechecking, lint, and 119 node tests. GPU-column extensions remain unsupported.


Note

Medium Risk
Modifies WebGPU aggregation logic and state retention across aggregation layers, affecting fallback rules and asynchronous frame updates.

Overview
Enables WebGPU compute aggregation for advanced HexagonLayer features that previously forced a fallback to CPU aggregation. This includes automatic domains, picking, domain callbacks, quantile and ordinal scales, percentile filtering, and accessor extensions.

Shares compute aggregation utilities in AggregationLayer. Lifts compute aggregator options, clipping conversions, metadata checks, and cell retention logic up into the base AggregationLayer for reuse by both GridLayer and HexagonLayer.

Preserves rendered cells during readback. Both layers now retain completed cell geometry during asynchronous GPU-to-CPU readbacks to prevent blank frames, temporarily disabling picking until the updated data arrives.

Reviewed by Cursor Bugbot for commit 6528e5d. Bugbot is set up for automated code reviews on this repo. Configure here.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T19:52:23.440534Z b9c71af PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no outstanding issues were found.

Summary

HexagonLayer now uses the shared WebGPU path for domains, picking, scales, percentiles, and accessor-based extensions. Previous cells stay visible while required results are copied back.

  • HexagonLayer uses WebGPU compute with picking, automatic domains, scales, and extensions.
  • GridLayer and HexagonLayer keep cells visible while new results are pending.

Since the previous review, only TSDoc comments changed. The requested declaration comments are present, and no new issues were found.

Reviews (7) · Last reviewed commit: "Document retained aggregation state and ..." · Reviewed by Greptile

@coveralls

coveralls commented Nov 9, 2026 •

Copy link
Copy Markdown

Coverage Status

No base build to compare — codex/hexagon-webgpu-parity into master

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 0c54b13; comments only at this point. One P1: on WebGPU, HexagonLayers with default props or pickable now draw no cells for 1 to 4+ frames after each change.

The one-frame matchesLength gap from #11045 is unchanged. On swiftshader WebGPU, color and elevation domains matched CPU aggregation on the SF bike-parking points.

Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.

Comment thread docs/whats-new.md Resolved
@ibgreen
ibgreen requested a review from chrisgervang November 10, 2026 11:20

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed a933d36; recommend approval. The P1, the shared-code item and both docs items are addressed.

On swiftshader WebGPU with radius 200, 800, 100, cells now draw in every frame after the first load with default props, explicit domains and pickable. The one-frame gap from #11045 is gone too. Two new Non-blocking items below.

Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6528e5d. Configure here.

@ibgreen
ibgreen merged commit a430729 into master Nov 17, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/hexagon-webgpu-parity branch November 17, 2026 23:16
@ibgreen ibgreen mentioned this pull request Nov 17, 2026
14 of 70 tasks
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.

3 participants