Skip to content

refactor(extensions): pass PathStyle injections directly to ShaderPlugins - #11049

Merged
ibgreen merged 1 commit into
masterfrom
codex/shader-module-injections
Nov 5, 2026
Merged

ibgreen merged 1 commit into
masterfrom
codex/shader-module-injections

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Background

Picking and shadows already use ShaderPlugins on master. PathStyle still wraps GLSL snippets in legacy inject objects and merges them before passing them to its plugins. The snippets can feed the plugins directly.

Change List

  • Pass PathStyle GLSL injection maps directly to ShaderPlugins
  • Unit tests cover the existing shader assembly and rendering behavior

Verified with lint and all 27 PathStyle headless tests.


Note

Low Risk
Refactoring only changes internal shader object composition without altering shader source, assembly order, or runtime behavior.

Overview
Refactors GLSL shader injection handling in PathStyleExtension by removing legacy shader wrapper objects and _mergeShaders. Injection mappings in shaders.glsl.ts are now exported directly as flat dictionaries rather than nested inside inject properties.

PathStyleExtension now combines GLSL injections via object spreading before forwarding them to getPathStylePlugin and getSDFDashPlugin. Associated unit tests are updated to reference the new injection exports directly.

Reviewed by Cursor Bugbot for commit b251b4f. 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-05T12:56:39.902687Z
We couldn’t complete this review. Comment @codex review to try again.
b251b4f 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: 5/5

[Low impact] This PR appears safe to merge.

Summary

PathStyleExtension now passes flat GLSL injection maps directly to its shader plugins.

  • PathStyleExtension sends its shader snippets straight to the matching plugins.

No actionable issues found. Tests were not run during this review.

Reviews (1) · Last reviewed commit: "refactor(extensions): pass PathStyle inj..." · Reviewed by Greptile

@ibgreen
ibgreen requested a review from chrisgervang November 5, 2026 13:04
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 84.833% (-0.03%) from 84.865% — codex/shader-module-injections into master

@ibgreen
ibgreen merged commit aaec79c into master Nov 5, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/shader-module-injections branch November 5, 2026 14:45
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.

2 participants