Skip to content

feat(mesh-layers): add Arrow columns to SimpleMeshLayer - #11046

Merged
ibgreen merged 4 commits into
masterfrom
codex/arrow-simple-mesh
Nov 5, 2026
Merged

ibgreen merged 4 commits into
masterfrom
codex/arrow-simple-mesh

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Background

SimpleMeshLayer accepts instance attributes through accessors. Arrow columns can supply instance anchors and colors directly while the existing mesh and transform accessors define each instance.

Change List

  • Add Arrow positions and colors to SimpleMeshLayer
  • Share LayerColumns between layers and mesh-layers
  • Bind mesh geometry and instance columns with GPUVectorModel
  • Test indexed mesh picking across chunks on both backends
  • Document the Arrow instance inputs

Verified with lint, shared column tests, and SimpleMeshLayer browser tests.


Note

Medium Risk
Introduces new shader uniforms and alternate rendering paths for batched Arrow inputs in SimpleMeshLayer, though traditional accessor pathways remain intact.

Overview
Adds support for Apache Arrow table inputs in SimpleMeshLayer via optional positions and colors column props, allowing direct binding of Arrow vectors alongside existing mesh geometry and transform accessors. The layer also now supports luma.gl GPUVectorGeometry mesh objects.

To support mesh rendering with column batches, _LayerColumns and _ColumnDefinition are exported from @deck.gl/core and enhanced with custom fallback preparation and binary overrides. Additionally, simpleMeshUniforms and vertex shaders (GLSL and WGSL) now incorporate a rowIndexOffset uniform to maintain correct instance picking indices across batched draws.

Reviewed by Cursor Bugbot for commit bc1c89f. 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-05T01:58:01.118886Z
We couldn’t complete this review. Comment @codex review to try again.
4ac7b26 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 5, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The PR adds an Arrow-backed path to SimpleMeshLayer and relocates shared column code.

The code fixes the earlier transform findings, but the required release note must be added before merging.

Summary

Adds Arrow instance positions and colors to SimpleMeshLayer and shares column preparation through core.

  • SimpleMeshLayer places and colors mesh instances from Arrow columns.
  • Arrow column conversion now has one shared home in core.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Arrow positions and colors] --> C[LayerColumns]
  B[Rows or packed transforms] --> T[Four transform views]
  T --> C
  M[Shared mesh] --> G[GPUVectorModel]
  C --> G
  G --> D[Chunked draws with picking offsets]
Loading

Reviews (2) · Last reviewed commit: "Preserve packed mesh transforms in Arrow..." · Reviewed by Greptile

@coveralls

coveralls commented Nov 5, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 84.836% (+0.02%) from 84.817% — codex/arrow-simple-mesh into master

@ibgreen
ibgreen merged commit c66756b into master Nov 5, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/arrow-simple-mesh branch November 5, 2026 11:08

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

👍

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