Skip to content

Upgrade luma.gl to alpha.10 and reuse upstream model support - #11023

Merged
ibgreen merged 5 commits into
masterfrom
codex/luma-alpha10
Nov 4, 2026
Merged

ibgreen merged 5 commits into
masterfrom
codex/luma-alpha10

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Update luma.gl dependencies and lockfile to alpha.10
  • Share injection targets with no-op WGSL implementations
  • Adopt plugin and injection-target terminology throughout shader integration
  • Delegate vector binding with independent attribute lengths to luma.gl
  • Remove local attachment-format synchronization
  • Scope WebGPU dynamic parameters around layer draws
  • Move color masks to pipelines, preserving masked WebGL clears
  • Update existing dependency and Trips assembly checks
  • Documentation and upgrade guide

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.gl dependencies from 10.0.0-alpha.9 to 10.0.0-alpha.10 across all packages and aligns deck.gl with upstream model and shader assembler changes.

Renames shader hook mechanisms and plugin definitions to use the new ShaderInjectionTarget API with dual GLSL and WGSL parameter definitions. Removes custom vector attribute binding, constant-buffer lifecycle management, and attachment-format synchronization in GPUVectorModel and Layer, delegating them to luma.gl.

Updates render pass parameter scoping by applying dynamic WebGPU parameters via renderPass.withParameters() during layer draw calls. Moves colorMask from 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.

@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-11-04T01:55:21.404016Z
We couldn’t complete this review. Comment @codex review to try again.
36c96bb 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 Nov 4, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

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

Summary

Upgrades luma.gl to alpha.10 and delegates model support to upstream code.

  • luma.gl now owns GPU vector binding and attachment formats.
  • Color masks now follow layer pipelines and preserve WebGL clears.
  • Shader plugins now use shared injection targets for GLSL and WGSL.
  • deck.gl packages now require luma.gl 10.0.0-alpha.10.

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

Comment thread modules/core/src/passes/layers-pass.ts Resolved

@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 36c96bb. Configure here.

Comment thread modules/core/src/lib/layer.ts Resolved
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 84.668% (+0.2%) from 84.465% — codex/luma-alpha10 into master

@ibgreen
ibgreen merged commit f312e3c into master Nov 4, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/luma-alpha10 branch November 4, 2026 02:49

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
// 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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: "injection target injections" reads as a rename artifact. Could the bullet say what a plugin adds and link to the targets?

Suggested change
* `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)

Comment thread docs/upgrade-guide.md
Comment on lines +65 to +67
`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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Suggested change
`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.

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