Skip to content

feat(extensions): port DataFilterExtension to WebGPU - #10990

Merged
ibgreen merged 7 commits into
masterfrom
codex/data-filter-webgpu
Nov 4, 2026
Merged

ibgreen merged 7 commits into
masterfrom
codex/data-filter-webgpu

Conversation

@ibgreen

@ibgreen ibgreen commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

For #9504

Background

Port DataFilterExtension to WebGPU using luma.gl ShaderPlugins. Depends only on #10996, independently of Brushing and Clip; item counting remains WebGL-only.

Some background: we’re porting deck.gl extensions to WebGPU using luma.gl’s new ShaderPlugin API.

  • A luma ShaderModule contains:
    • GLSL/WGSL shader source
    • Uniform definitions
    • Module dependencies
  • A luma ShaderPlugin additionally defines:
    • Hooks with GLSL/WGSL implementations
    • Injections with GLSL/WGSL implementations
    • Vertex input definitions
    • Inter-stage variable (varying) definitions

The critical new feature is that luma.gl ShaderPlugins handle the required “surgery” on WGSL shader source code. In WGSL, adding an attribute or varying cannot be done simply by adding global declarations as in GLSL. It requires editing the main shader functions’ parameters and input/output structs, and carefully assigning attribute and varying locations.

deck.gl retains attribute creation, accessor updates, and extension lifecycle management. luma.gl ShaderPlugins handle shader composition. This gives Brushing, Clip, and DataFilter a common path across both backends.

Change List

  • Target shared GLSL/WGSL hook names from feat(core): prepare WebGPU shader hooks for extensions #10996
  • Invalidate GPU aggregation for changed extension uniforms and attributes
  • Port numeric, categorical, and fp64 filtering to ShaderPlugins
  • Reuse upstreamed aggregation plugin forwarding
  • Reject WebGPU countItems before resource creation
  • Add earthquake example's WebGPU tab
  • Unit tests: filtering, picking, and extension composition
  • Render tests: enable existing filtering goldens on WebGPU
  • Documentation

Verified: rebased onto master after #10996. Full build and lint passed with luma.gl alpha.10. CI rerunning.

TODO

  • Integrate filtering into Heatmap's custom WebGPU passes; currently unsupported

  • Follow up with extension-managed vertex attribute interleaving

  • Address vertex-buffer and attribute limits comprehensively; interleaving saves buffer slots, not attribute locations


Note

Medium Risk
Adds WGSL shader pipelines for data filtering and adjusts aggregation invalidation logic across GPU backends, though WebGL behavior remains largely unchanged and WebGPU counting restrictions are explicitly guarded.

Overview
Ports DataFilterExtension to WebGPU using luma.gl ShaderPlugin definitions. The new plugin implements WGSL shaders and injections for numeric and categorical filtering, 64-bit precision values, soft ranges, and geometry size/color transformations. Filtered item counting (countItems) remains WebGL-only and explicitly throws an error if configured on WebGPU.

Updates AggregationLayer to properly forward extension shader uniforms to GPU aggregators and trigger aggregation updates when extension uniforms or attributes change. Also updates documentation, adds comprehensive WebGPU unit tests, and enables WebGPU in visual regression test suites and website examples.

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

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-31T22:58:25.298963Z
We couldn’t complete this review. Comment @codex review to try again.
58e9c9e 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@greptile-apps

greptile-apps Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

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

Summary

Ports DataFilterExtension to shared GLSL/WGSL ShaderPlugins.

  • Data filtering now works on supported WebGPU layers.
  • GPU aggregation now follows changes to extension filters.
  • The WebGPU guide now lists PathStyleExtension as supported.

The previous findings are addressed by plugin forwarding, corrected icon/text color order, device checks, and extension-attribute updates. All supplied previous threads are unnumbered, so they have no numbered ledger entries.

ibgreen explicitly defers WebGPU Heatmap filtering because its weight pass needs separate integration. Attribute interleaving and hardware-limit work are also deferred.

Review checks were source-based; no build, browser tests, or visual capture was run.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Props[Filter props and accessors] --> Attributes[Layer-owned attributes]
  Props --> Uniforms[Filter uniforms]
  Attributes --> Plugin[DataFilter ShaderPlugin]
  Uniforms --> Plugin
  Plugin --> GLSL[WebGL rendering and aggregation]
  Plugin --> WGSL[WebGPU rendering]
  GLSL --> Count[Optional item counting]
Loading

Reviews (18) · Last reviewed commit: "refactor(data-filter): use shared shader..." · 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/clip-shader-plugins branch from 64d579f to b66d286 Compare November 1, 2026 17:53
@ibgreen
ibgreen force-pushed the codex/data-filter-webgpu branch from 58e9c9e to 453eb33 Compare November 1, 2026 17:53
@ibgreen
ibgreen force-pushed the codex/data-filter-webgpu branch from 453eb33 to e52f98c Compare November 1, 2026 20:15
@ibgreen
ibgreen force-pushed the codex/clip-shader-plugins branch from b66d286 to 7a26276 Compare November 1, 2026 20:15

@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/data-filter-webgpu branch from e52f98c to 54938e5 Compare November 1, 2026 20:22
@ibgreen
ibgreen force-pushed the codex/clip-shader-plugins branch from 7a26276 to 2170274 Compare November 1, 2026 20:22
@ibgreen
ibgreen force-pushed the codex/data-filter-webgpu branch from f7c4f1f to b2e1e09 Compare November 1, 2026 20:26
@ibgreen
ibgreen force-pushed the codex/clip-shader-plugins branch from 2170274 to 8c2216c Compare November 1, 2026 20:26
@ibgreen
ibgreen force-pushed the codex/clip-shader-plugins branch from 8c2216c to 4744265 Compare November 1, 2026 20:43
@ibgreen
ibgreen force-pushed the codex/data-filter-webgpu branch from 869dfe5 to 3653b77 Compare November 1, 2026 20:43
@coveralls

coveralls commented Nov 1, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 84.727% (-0.03%) from 84.754% — codex/data-filter-webgpu into master

@ibgreen
ibgreen force-pushed the codex/data-filter-webgpu branch from 3653b77 to 9941ce7 Compare November 1, 2026 20:58
@ibgreen
ibgreen force-pushed the codex/clip-shader-plugins branch from f112734 to d243e8b Compare November 2, 2026 23:47
@ibgreen
ibgreen force-pushed the codex/data-filter-webgpu branch from 9941ce7 to f5ccac7 Compare November 2, 2026 23:48
@ibgreen
ibgreen changed the base branch from codex/clip-shader-plugins to codex/extension-shader-plugin-prep November 2, 2026 23:48

@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/extension-shader-plugin-prep branch from 4f9fdcc to 3bff823 Compare November 4, 2026 00:02
@ibgreen
ibgreen force-pushed the codex/data-filter-webgpu branch from 1286280 to 50040cb Compare November 4, 2026 00:08
@ibgreen
ibgreen force-pushed the codex/data-filter-webgpu branch 2 times, most recently from f9be900 to 0e719b8 Compare November 4, 2026 00:51

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

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

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

@ibgreen
ibgreen force-pushed the codex/data-filter-webgpu branch from 108d861 to 8604fcd Compare November 4, 2026 01:44
@ibgreen
ibgreen force-pushed the codex/extension-shader-plugin-prep branch from 2a816bd to 86e6032 Compare November 4, 2026 03:01
Base automatically changed from codex/extension-shader-plugin-prep to master November 4, 2026 03:12
@ibgreen
ibgreen force-pushed the codex/data-filter-webgpu branch from 8604fcd to 6aafc5c Compare November 4, 2026 03:17
@ibgreen
ibgreen force-pushed the codex/data-filter-webgpu branch from 6aafc5c to 9a88e8d Compare November 4, 2026 15:25
@ibgreen
ibgreen merged commit 2d20ff2 into master Nov 4, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/data-filter-webgpu branch November 4, 2026 17:40
@ibgreen ibgreen mentioned this pull request Nov 19, 2026
42 of 61 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.

2 participants