Skip to content

Add an opt-in graph aggregator for ScreenGridLayer - #11084

Merged
ibgreen merged 12 commits into
masterfrom
codex/screen-grid-graph
Nov 17, 2026
Merged

ibgreen merged 12 commits into
masterfrom
codex/screen-grid-graph

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #11083.

Background

_GraphScreenGridAggregator is selected with aggregator: new _GraphScreenGridAggregator(). It composes luma.gl's upstream GPUGraphGroupAggregation and returns GPUVectors through the layer-owned lifecycle.

Change List

  • Add opt-in ScreenGrid graph aggregation
  • Use upstream grouped operations and built-in compiler lowering
  • Remove local generic operations, lowerings, and their upstream-owned test
  • Evaluate extension masks and weights in a deck-specific operation
  • Supply layer-owned shader contexts and attribute bindings
  • Unit tests
  • Documentation

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 for ScreenGridLayer that performs binning and reduction using luma.gl GPU graph operations.

Extends the Aggregator interface and AggregationLayer to supply layer shader configurations and attribute bindings via setShaderContext, along with new capability flags (supportsExtensions, requiresProjectedPositions) and an onNeedsRedraw callback. Layer shader extensions and filter hooks are evaluated directly within the GPU graph via a new DeckAggregationInputsOperation before 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 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-10T15:16:22.988347Z 0eba51c 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 10, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

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

Summary

Adds an experimental, opt-in GPU graph aggregator for ScreenGridLayer, while keeping the default aggregation paths unchanged.

  • ScreenGrid can aggregate cells through an opt-in WebGPU graph.
  • Custom aggregators can receive layer shaders and declare their input limits.

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

@coveralls

coveralls commented Nov 10, 2026 •

Copy link
Copy Markdown

Coverage Status

No base build to compare — codex/screen-grid-graph into master

@ibgreen ibgreen changed the title ScreenGridLayer: reduce cells with GPU graph operations Add an opt-in graph aggregator for ScreenGridLayer Nov 10, 2026
@ibgreen
ibgreen force-pushed the codex/screen-grid-graph branch from 3e75e17 to 755de82 Compare November 11, 2026 15:05

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

Comment thread docs/whats-new.md Resolved
Comment thread modules/aggregation-layers/src/index.ts Resolved
@ibgreen
ibgreen merged commit 776c68d into master Nov 17, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/screen-grid-graph branch November 17, 2026 23:18
@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.

Use GPU graph operations for ScreenGrid aggregation

3 participants