Repository navigation
refactor(path-layer): share GLSL join output assembly - #10648
Conversation
[Low impact] This PR appears safe to merge. SummaryThis PR selects
Reviews (5) · Last reviewed commit: "Merge branch 'codex/path-style-dash-vary..." · Reviewed by Greptile |
96191d9 to
6ec6b13
Compare
athomct
left a comment
There was a problem hiding this comment.
This looks equivalent to me: in both the raw and the coverage-padded branches the corner offset, the path position and the vertex offset all used the same vector before, and they now share renderOffsetVec. Unit and WebGL render suites pass locally.
One optional idea: the new preprocessing test would still pass if vCornerOffset were later assigned the raw offsetVec while the extrusion stays padded. An assertion for vCornerOffset = renderOffsetVec; in all four variants would pin that too.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
53e4708 to
d9b6746
Compare
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
Follow up of #10647
Change List
PathLayerGLSL: selectrenderOffsetVeconce, assemble join outputs onceANTIALIASING/DASH_ENABLEDvariantsNo golden images changed. Verified with headless unit tests and the WebGL path render suites.
Note
Low Risk
Low-risk shader refactoring with no behavioral changes, verified by unit tests across all shader preprocessor variants.
Overview
Refactors the
PathLayervertex shader to deduplicate line join and fragment varying calculations between antialiased and non-antialiased code paths.Instead of duplicating the assignment block across conditional branches, the shader now defines a unified
renderOffsetVecbased on whetherANTIALIASINGis enabled and computes joint outputs once. Also adds unit tests verifying preprocessed shader outputs across all combinations of antialiasing and dashed line modes.Reviewed by Cursor Bugbot for commit d9b6746. Bugbot is set up for automated code reviews on this repo. Configure here.