Repository navigation
Add an opt-in graph aggregator for ScreenGridLayer - #11084
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 PR appears safe to merge; no new blocking issues were found. SummaryAdds an experimental, opt-in GPU graph aggregator for
The follow-up adds TSDoc comments. Both earlier findings are addressed; no new issues were found. Reviews (10) · Last reviewed commit: "Document graph aggregation helpers and r..." · Reviewed by Greptile |
87459d2 to
3e75e17
Compare
3e75e17 to
755de82
Compare
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed 3e75e17; recommend approval. No P1s. Default behavior matches master when aggregator is omitted. The comments are mostly about the docs.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Closes #11083.
Background
_GraphScreenGridAggregatoris selected withaggregator: new _GraphScreenGridAggregator(). It composes luma.gl's upstreamGPUGraphGroupAggregationand returns GPUVectors through the layer-owned lifecycle.Change List
Rebased onto master with luma.gl alpha.13. Lint, types, 122 Node tests, 14 graph/extension WebGPU tests, package builds, and website checks pass. Extensions require accessor-generated attributes; borrowed GPUVector inputs require no extensions.
Note
Low Risk
Low risk as the new graph-based aggregator is strictly opt-in and experimental, with additions to the aggregator interface preserving existing default behavior.
Overview
Adds
_GraphScreenGridAggregator, an experimental WebGPU aggregator forScreenGridLayerthat performs binning and reduction using luma.gl GPU graph operations.Extends the
Aggregatorinterface andAggregationLayerto supply layer shader configurations and attribute bindings viasetShaderContext, along with new capability flags (supportsExtensions,requiresProjectedPositions) and anonNeedsRedrawcallback. Layer shader extensions and filter hooks are evaluated directly within the GPU graph via a newDeckAggregationInputsOperationbefore grouped reduction.Also refactors shared aggregation uniforms and property utilities into common modules, accompanied by tests for reduction operations, layer extensions, and asynchronous readbacks.
Reviewed by Cursor Bugbot for commit 9f5900b. Bugbot is set up for automated code reviews on this repo. Configure here.
Review follow-up: the aggregator is exported as experimental. Grouped statistics use upstream luma GPUGraph operations; deck-specific shader extension input handling stays in deck.gl.