Repository navigation
feat(aggregation-layers): bind GPUVector extension columns - #11188
Conversation
Codex Review Summary: ✅ CompletedThis 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. |
[Medium impact] The changes appear safe to merge. SummaryAdds borrowed GPU columns for numeric filtering and custom brushing across four aggregation layers.
No actionable issues found. Tests were not run during this review. Reviews (3) · Last reviewed commit: "Reuse aggregation results when extension..." · Reviewed by Greptile |
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 f0422b1. Configure here.
4a35bcb to
ba8b2a5
Compare
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed ba8b2a5 after merge; follow-ups below.
No P1s.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
| - The built-in compute aggregator supports [ClipExtension](../extensions/clip-extension.md) | ||
| and [BrushingExtension](../extensions/brushing-extension.md) with `brushingTarget: 'source'`. | ||
| Both require borrowed `float32x3` positions and weights whose buffers also have `VERTEX` usage. | ||
| - See [GPU column extensions](./aggregator.md#gpu-column-extensions) for clipping, brushing, and numeric filtering. |
There was a problem hiding this comment.
P2: extensionAttributes has no entry on the layer pages. Their GPUVector inputs lists name only the position, weight and bounds props. The prop only appears in prose in aggregator.md, though it works only without an aggregator (aggregation-layer.ts:86).
Could we add an extensionAttributes bullet to each list that links to the GPU column extensions section?
Generated by Claude Code
| and [BrushingExtension](../extensions/brushing-extension.md) filter input points before aggregation. They also support [borrowed GPU columns](./aggregator.md#gpu-column-extensions). | ||
| Layers with other extensions use CPU aggregation on WebGPU. | ||
|
|
||
| ContourLayer also accepts [GPU column inputs](./aggregator.md#gpu-column-inputs), which need `dataBounds`. |
There was a problem hiding this comment.
P2: aggregator.md has no #gpu-column-inputs heading, so this link and the one on hexagon-layer.md:199 go nowhere. Both are still broken on master and predate this PR (#11078, #11079).
Could we point both links at a heading that exists?
Generated by Claude Code
| if (!filterSize || categorySize || fp64 || countItems) { | ||
| throw new Error( | ||
| 'GPU column filtering requires numeric DataFilter without fp64 or item counting' | ||
| ); | ||
| } |
There was a problem hiding this comment.
Non-blocking: No test reaches the rejection paths: a missing filterValues column, category filtering, countItems, or a buffer without VERTEX usage. Could one test cover the missing-column error?
Generated by Claude Code

For #10712
Follow up of #11186
Background
Borrowed aggregation vectors need separate columns for numeric filter values and custom brushing targets.
Change List
AggregationLayerextensionAttributespropVerified with lint and 19 Chromium WebGPU aggregation tests.
Note
Low Risk
Low risk addition of experimental extension bindings for WebGPU compute aggregation, with no impact on default accessor-based flows.
Overview
Adds support for shader extensions (
ClipExtension,BrushingExtension, and numericDataFilterExtension) when using borrowedGPUVectorcolumn inputs across WebGPU aggregation layers (ScreenGridLayer,GridLayer,HexagonLayer, andContourLayer).Introduces an experimental
extensionAttributesprop onAggregationLayerto provide auxiliary GPU columns (such asfilterValuesandbrushingTargets). Attribute validation and binding for borrowed GPU columns have been unified into the sharedAggregationLayerbase class and removed fromScreenGridLayer.Reviewed by Cursor Bugbot for commit ba8b2a5. Bugbot is set up for automated code reviews on this repo. Configure here.