Skip to content

feat(aggregation-layers): bind GPUVector extension columns - #11188

Merged
ibgreen merged 3 commits into
masterfrom
codex/aggregation-vector-extensions
Nov 18, 2026
Merged

ibgreen merged 3 commits into
masterfrom
codex/aggregation-vector-extensions

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

For #10712

Follow up of #11186

Background

Borrowed aggregation vectors need separate columns for numeric filter values and custom brushing targets.

Change List

  • Bind borrowed extension columns in AggregationLayer
  • Share input filtering across ScreenGrid, Grid, Hexagon, and Contour
  • Unit tests for interleaved filters and custom brushing
  • Documentation for the experimental extensionAttributes prop

Verified 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 numeric DataFilterExtension) when using borrowed GPUVector column inputs across WebGPU aggregation layers (ScreenGridLayer, GridLayer, HexagonLayer, and ContourLayer).

Introduces an experimental extensionAttributes prop on AggregationLayer to provide auxiliary GPU columns (such as filterValues and brushingTargets). Attribute validation and binding for borrowed GPU columns have been unified into the shared AggregationLayer base class and removed from ScreenGridLayer.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 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-18T15:05:56.966036Z db32811 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 18, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The changes appear safe to merge.

Summary

Adds borrowed GPU columns for numeric filtering and custom brushing across four aggregation layers.

  • Four aggregation layers can filter borrowed GPU columns during WebGPU aggregation.

No actionable issues found. Tests were not run during this review.

Reviews (3) · Last reviewed commit: "Reuse aggregation results when extension..." · Reviewed by Greptile

@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 f0422b1. Configure here.

@coveralls

coveralls commented Nov 18, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.52% (-0.08%) from 82.597% — codex/aggregation-vector-extensions into master

Base automatically changed from codex/screen-grid-vector-brushing to master November 18, 2026 16:19
@ibgreen
ibgreen force-pushed the codex/aggregation-vector-extensions branch from 4a35bcb to ba8b2a5 Compare November 18, 2026 16:19
@ibgreen
ibgreen merged commit 467f453 into master Nov 18, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/aggregation-vector-extensions branch November 18, 2026 16:34

@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 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.

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.

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`.

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.

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

Comment on lines +133 to +137
if (!filterSize || categorySize || fp64 || countItems) {
throw new Error(
'GPU column filtering requires numeric DataFilter without fp64 or item counting'
);
}

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.

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

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