Repository navigation
refactor(extensions): name the whole-path dash shader mode - #10649
Conversation
[Low impact] The PR appears safe to merge; the private define rename is consistent across both shader backends. SummaryRenames the private whole-path dash define to
Reviews (5) · Last reviewed commit: "Merge branch 'codex/path-layer-join-tail..." · Reviewed by Greptile |
08f2431 to
9abcda0
Compare
ibgreen
left a comment
There was a problem hiding this comment.
The define rename is applied consistently in the extension and GLSL shader. The tests exercise the explicit path mode and its legacy alias. I found no blocker.
# Conflicts: # test/render/test-cases/path-dash.spec.ts
…tyle-dash-varyings # Conflicts: # modules/extensions/src/path-style/shaders.glsl.ts # modules/geo-layers/src/trips-layer/trips-layer.ts # modules/geo-layers/src/trips-layer/trips-layer.wgsl.ts # test/modules/extensions/path.spec.ts # test/modules/geo-layers/trips-layer.spec.ts
…mode-define # Conflicts: # modules/extensions/src/path-style/shaders.glsl.ts
…tyle-dash-varyings
…ips-dash-baseline
…tyle-dash-varyings
…ment Also assert the full WGSL DECKGL_FILTER_PATH_COLOR_VERTEX call in the TripsLayer dash test.
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.
…sh-mode-define # Conflicts: # modules/extensions/src/path-style/shaders.wgsl.ts
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
visgl#10649 and the rest of the stack merged to master. Keep the master imports from @math.gl/core/matrix and add this branch's imports.
Follow up of #10648
Background
The private shader define
HIGH_PRECISION_DASHis named after the deprecatedhighPrecisionDashoption, but it selectsdashMode: 'path'.Change List
HIGH_PRECISION_DASHtoDASH_MODE_PATHin GLSL and WGSLhighPrecisionDashoption unchanged; still resolves to path modedashMode: 'path'and the legacy aliasNo golden images changed. Verified with
yarn build,yarn lint, headless unit tests and the WebGL path render suites.Note
Low Risk
Low risk internal refactoring of a private shader define with no changes to public APIs or visual output.
Overview
Renames the internal shader define
HIGH_PRECISION_DASHtoDASH_MODE_PATHacross GLSL and WGSL shaders inPathStyleExtension. This aligns the shader variant naming with the moderndashMode: 'path'configuration rather than the deprecatedhighPrecisionDashoption.Unit tests are updated to assert on
DASH_MODE_PATHfor bothdashMode: 'path'and the legacyhighPrecisionDashoption.Reviewed by Cursor Bugbot for commit a39214f. Bugbot is set up for automated code reviews on this repo. Configure here.