Repository navigation
Aggregation (4/4): share compute reduction and port GridLayer - #11053
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
[Medium impact] The PR appears safe to merge; no new blocking issue was found. Summary
|
69c129d to
ba26bba
Compare
e6e7f7a to
341ed72
Compare
5829a37 to
84ba584
Compare
ad6045c to
8b669b4
Compare
8b669b4 to
87edb95
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ 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 1b67247. Configure here.

Follow up of #11052. Part 4 of the aggregation stack.
Background
GridLayer currently falls back to CPU aggregation on WebGPU. This adds independent color and elevation reduction with explicit domains, feeding GPU vectors directly to the cell layer.
Change List
Verified 176 browser tests, 51 node tests, aggregation typechecking, and lint. Two existing browser skips. Website check stopped during dependency fetching after network retries.
Note
Medium Risk
Introduces new WebGPU compute shaders and pipeline refactoring for aggregation layers. Risk is mitigated by explicit eligibility checks and automatic runtime fallbacks to CPU aggregation.
Overview
Introduces a shared
WebGPUAggregatorbase class and reusable WGSL compute kernels for dense 2D aggregation, extracting the column preparation and atomic reduction pipeline previously confined toScreenGridLayer.Adds
WebGPUGridAggregatorto support WebGPU compute aggregation inGridLayerwith independent two-channel color and elevation reduction. Aggregation outputs remain in GPU storage buffers and are passed directly toGridCellLayeras vectors when explicit color and elevation domains are provided.Implements automatic fallbacks to
CPUAggregatorwhenever unsupported layer features, non-float32 attributes, or device buffer size limits are encountered. Also updates WGSL shaders for grid and screen-grid cell layers with bitcast-based NaN validation and adds WGSL uniform struct definitions to bin options.Reviewed by Cursor Bugbot for commit 1273a8b. Bugbot is set up for automated code reviews on this repo. Configure here.