Repository navigation
feat(aggregation): support DataFilter on WebGPU HeatmapLayer - #11207
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2cd5fa69c0
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
[Medium impact] The PR appears safe to merge; no new blocking issues were found. SummaryAdds
The earlier category-loading, count-callback, and release-note findings are addressed. No new actionable issues were found.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ 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 71cbbbd. Configure here.
…t-extensions # Conflicts: # docs/whats-new.md
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed 520d8a8 after merge; follow-ups below.
One P1: the DataFilterExtension Limitations list is wrong.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
| ### Always supported: | ||
| * `GPUGridLayer` |
There was a problem hiding this comment.
P1: After this removal, the Limitations list does not mention HeatmapLayer. It names GPUGridLayer and CPUGridLayer, which @deck.gl/aggregation-layers no longer exports. It also lists HexagonLayer as "Not supported", while hexagon-layer.md:198 says its GPU path runs extensions. Most of the list is older than this PR.
Could we rewrite the list from the current exports and add HeatmapLayer to the supported layers?
Generated by Claude Code
| /** Supplies shader props for a layer's offscreen aggregation pass. */ | ||
| getAggregationShaderProps( | ||
| this: Layer, | ||
| extension: this | ||
| ): Record<string, Record<string, unknown>> | undefined { | ||
| return undefined; | ||
| } |
There was a problem hiding this comment.
P2: getAggregationShaderProps is a new public LayerExtension method. docs/developer-guide/custom-layers/layer-extensions.md lists the other extension methods but not this one. Other extensions on HeatmapLayer get their plugins compiled into the weight pass with default uniforms.
Could we document the hook on that page, or mark it internal?
Generated by Claude Code
| (1.77245385 * 0.166666); | ||
| return varyings.weights * gaussian; | ||
| var weights = varyings.weights * gaussian; | ||
| DECKGL_FILTER_COLOR(&weights, fragmentGeometry); |
There was a problem hiding this comment.
Non-blocking: With filterSoftRange, a faded point keeps its full SUM weight and inflates the MEAN, because this hook only scales alpha. Should the weight pass scale all channels?
Details
- MEAN divides
weights.rbyweights.a, so a point at half fade doubles its local mean. - WebGL's
weights-fsuses the same hook, so both backends match.
Generated by Claude Code
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.

Background
WebGPU HeatmapLayer did not run DataFilter before accumulating point weights. The weight-pass work is separate from the MaskExtension integration tracked in #7397.
Change List
Verified: lint, 207 node tests, and filtered heatmap render checks on both backends.
Note
Medium Risk
Modifies WebGPU shader pipeline execution and adds a new extension hook for offscreen aggregation passes, though changes are scoped to HeatmapLayer and covered by render and unit tests.
Overview
Adds support for
DataFilterExtensionfiltering and item counting inHeatmapLayeron WebGPU by filtering point weights during the weight accumulation pass.A new
getAggregationShaderPropshook onLayerExtensionenables extensions to pass shader uniforms into offscreen aggregation models.HeatmapLayerconsumes these shader props during its weight map generation, adds theDECKGL_FILTER_COLORshader hook to WGSL weight fragment shaders, excludes point filter extensions from the max-weight reduction and display sublayers, and handles deferred count updates for composite layers. Documentation and tests have also been updated to reflect WebGPU data filter support.Reviewed by Cursor Bugbot for commit 520d8a8. Bugbot is set up for automated code reviews on this repo. Configure here.