Repository navigation
feat(extensions): support WebGPU brushing with ShaderPlugins - #10988
Conversation
Codex Review SummaryThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
[Medium impact] The PR appears safe to merge; the required release note is now present. Summary
The latest change adds the previously requested release note. No new actionable issues were found.
|
6d17d03 to
0ab27fd
Compare
5eedaec to
14a8928
Compare
4f9fdcc to
3bff823
Compare
a60849e to
c49d9bd
Compare
2a816bd to
86e6032
Compare
a4062dc to
16cf3d8
Compare
16cf3d8 to
2d788ee
Compare
Background
Brushing needs WebGPU support without layer-specific attribute or varying rewrites. luma.gl alpha.10 now supplies the portable ShaderPlugin interface.
Depends only on shared preparation #10996; independent of Clip and DataFilter.
Some background: we’re porting deck.gl extensions to WebGPU using luma.gl’s new ShaderPlugin API.
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
BrushingExtensionthrough one ShaderPlugin moduleVerified: rebased onto master after #10996. Full build and lint passed with luma.gl alpha.10. CI rerunning.
Note
Low Risk
Changes are isolated to the brushing shader extension and its documentation, with comprehensive WebGPU test coverage and preserved WebGL behavior.
Overview
Adds WebGPU support to
BrushingExtensionusing luma.glShaderPlugininterfaces, enabling GPU data brushing, picking, and composition withClipExtensionacross standard rendering primitives in@deck.gl/layersand@deck.gl/mesh-layers.Updates
brushingPluginwith WGSL shader sources, injected vertex inputs, and inter-stage variables, and renames the internal brushing uniform target field fromtargettotargetMode.Adds a WebGPU test suite validating pipeline creation across primitive layers, target modes, live accessor updates, and picking behavior, alongside documentation updates and website example device switching.
Reviewed by Cursor Bugbot for commit 24f3fcd. Bugbot is set up for automated code reviews on this repo. Configure here.