Skip to content

ScreenGrid and Grid: complete WebGPU rendering features - #11063

Merged
ibgreen merged 13 commits into
masterfrom
codex/webgpu-aggregation-features
Nov 9, 2026
Merged

ibgreen merged 13 commits into
masterfrom
codex/webgpu-aggregation-features

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Follow up of #11053.

Background

ScreenGrid and Grid compute paths currently require explicit domains and fall back for several rendering options. This adds automatic domains, picking metadata, domain callbacks, extension hooks, and Grid percentile/quantile/ordinal scales. CPU-facing features use asynchronous snapshots while cell rendering keeps GPUVector outputs.

Change List

  • Add revision-checked metadata snapshots and loading state
  • Execute extension hooks before shared atomic reduction
  • Supply completed snapshots to existing distribution scales
  • Preserve the explicit-domain GPU-only fast path
  • Unit tests
  • Documentation

90 aggregation tests (one existing skip), scoped typechecking, lint, and 87 node tests pass. CI passes: package build, lint, coverage, WebGPU tests, website, Python, and projection example. Snapshot-dependent features are asynchronous; GPU-column inputs with extensions remain unsupported.


Note

Medium Risk
Modifies WebGPU aggregation pipelines by introducing asynchronous buffer readbacks, revision tracking, and raster filter passes, removing previous CPU fallbacks in Grid and ScreenGrid layers.

Overview
Enables WebGPU compute aggregation in GridLayer and ScreenGridLayer for features that previously fell back to CPU aggregation, including automatic domains, picking, domain callbacks, layer extensions, and distribution/percentile scales.

Adds asynchronous CPU metadata snapshots to WebGPUAggregator with revision tracking to discard stale readbacks, feeding domain calculations, picking queries, and quantile/ordinal scales while keeping GPU vector outputs on the fast path. Also introduces a raster-based extension filter pipeline to execute layer extension hooks such as ClipExtension and DataFilterExtension before atomic bin reduction.

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

@greptile-apps

greptile-apps Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

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

Summary

Adds automatic domains, picking metadata, compatible extension filtering, and Grid distribution scales to WebGPU aggregation.

  • Grid layers keep more aggregation features on the GPU.
  • Compatible extensions filter points before GPU aggregation.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Input points] --> B{Extension hooks?}
  B -->|Yes| C[Filter points]
  B -->|No| D[Compute reduction]
  C --> D
  D --> E[GPU cell results]
  D --> F{CPU values needed?}
  F -->|Yes| G[Asynchronous copy]
  G --> H{Revision still current?}
  H -->|Yes| I[Domains, picking and scales]
  H -->|No| J[Discard old copy]
Loading

Reviews (13) · Last reviewed commit: "Merge master and retain both Heatmap and..." · 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.

Stale Bugbot comment from a previous run.

@ibgreen
ibgreen force-pushed the codex/webgpu-aggregation-features branch from 7a203b6 to 5a36bc7 Compare November 7, 2026 19:17
@coveralls

coveralls commented Nov 7, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 83.815% (-0.6%) from 84.367% — codex/webgpu-aggregation-features into master

@ibgreen
ibgreen force-pushed the codex/webgpu-aggregation-features branch from 5a36bc7 to 0b01791 Compare November 7, 2026 19:24

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

Stale Bugbot comment from a previous run.

@ibgreen
ibgreen force-pushed the codex/webgpu-aggregation-features branch 2 times, most recently from bdfdadd to de2c3f3 Compare November 8, 2026 13:15
Base automatically changed from codex/webgpu-grid to master November 8, 2026 13:28
@ibgreen
ibgreen force-pushed the codex/webgpu-aggregation-features branch from 6ecf347 to 590aeec Compare November 8, 2026 13:29

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

Stale Bugbot comment from a previous run.

@ibgreen
ibgreen force-pushed the codex/webgpu-aggregation-features branch from a7aa028 to cc95803 Compare November 8, 2026 16:01
@ibgreen
ibgreen requested a review from chrisgervang November 8, 2026 16:22

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

@ibgreen
ibgreen requested a review from chrisgervang November 9, 2026 12:32
@ibgreen
ibgreen merged commit ce5e25f into master Nov 9, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/webgpu-aggregation-features branch November 9, 2026 14:17
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