Repository navigation
Upgrade luma.gl to alpha.10 and reuse upstream model support - #11023
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. |
[High impact] The PR appears safe to merge; no new actionable issues were found. SummaryUpgrades luma.gl to alpha.10 and delegates model support to upstream code.
No new actionable issues were found. The earlier color-channel finding is fixed: WebGPU draws now start with the full color mask before applying overrides. No tests were run during this review. Reviews (4) · Last reviewed commit: "Fix polygon picking with luma vector bin..." · Reviewed by Greptile |
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 36c96bb. Configure here.
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed 185d28c after merge; follow-ups below. No P1s. The "hook" rename left garbled text on two pages, and the colorMask entry needs the upgrade-guide form. The addShaderInjectionTarget paragraph is part of the upgrade-guide rewrite proposed on #11022.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
| module: highlightUniforms, | ||
| injections: { | ||
| // Standard injection hook - see "Writing Shaders" | ||
| // Standard injection injection target - see "Writing Shaders" |
There was a problem hiding this comment.
Non-blocking: "injection injection target" is a find-and-replace artifact. Line 229 has the same text, and the #11022 follow-up rewrites that example.
| // Standard injection injection target - see "Writing Shaders" | |
| // Standard injection target - see "Writing Shaders" |
| * `fs`: string, GLSL source of the fragment shader | ||
| * `modules`: Array, list of shader modules to be used | ||
| * `plugins`: Array of `ShaderPlugin` descriptors contributing modules and hook injections | ||
| * `plugins`: Array of `ShaderPlugin` descriptors contributing modules and injection target injections |
There was a problem hiding this comment.
Non-blocking: "injection target injections" reads as a rename artifact. Could the bullet say what a plugin adds and link to the targets?
| * `plugins`: Array of `ShaderPlugin` descriptors contributing modules and injection target injections | |
| * `plugins`: Array of `ShaderPlugin` descriptors, each adding a shader module or code at the [standard injection targets](./writing-shaders.md#standard-shader-injection-targets) |
| `RenderPassParameters.colorMask` is removed in alpha.10. Set `colorMask` on layer | ||
| or model pipeline parameters instead. `LayersPassRenderOptions.colorMask` still | ||
| applies to layer draws and preserves masked WebGL attachment clears. |
There was a problem hiding this comment.
P2: This entry doesn't say who is affected, pins "alpha.10", and its last sentence describes a case where nothing changes. Could it follow the "This applies if you…" form?
| `RenderPassParameters.colorMask` is removed in alpha.10. Set `colorMask` on layer | |
| or model pipeline parameters instead. `LayersPassRenderOptions.colorMask` still | |
| applies to layer draws and preserves masked WebGL attachment clears. | |
| This applies if you set `colorMask` in render pass parameters, for example in `device.beginRenderPass()` in a custom effect. | |
| Set `colorMask` in the layer's `parameters` prop or in the model's pipeline `parameters` instead. |

Background
Luma.gl alpha.10 provides scoped draw parameters and dual-language injection targets. Deck retains vector-binding and attachment-format workarounds now covered upstream.
Change List
Verified: root install, full build, private build, and lint passed. CI follow-up fixes passed full build and lint. No local tests run; CI pending.
Note
Medium Risk
Updates core rendering engine dependencies, model attribute binding, and render pass parameter management across both WebGL and WebGPU backends.
Overview
Upgrades
@luma.gldependencies from10.0.0-alpha.9to10.0.0-alpha.10across all packages and aligns deck.gl with upstream model and shader assembler changes.Renames shader hook mechanisms and plugin definitions to use the new
ShaderInjectionTargetAPI with dual GLSL and WGSL parameter definitions. Removes custom vector attribute binding, constant-buffer lifecycle management, and attachment-format synchronization inGPUVectorModelandLayer, delegating them to luma.gl.Updates render pass parameter scoping by applying dynamic WebGPU parameters via
renderPass.withParameters()during layer draw calls. MovescolorMaskfrom pass-level parameters into pipeline parameters and formats numeric bitmasks into boolean tuples for WebGL clears and device parameters.Reviewed by Cursor Bugbot for commit 185d28c. Bugbot is set up for automated code reviews on this repo. Configure here.