Repository navigation
fix(layers): ScatterplotLayer antialiasing on webgpu - #10642
Merged
Merged
Conversation
Greptile SummaryThe PR corrects all three ScatterplotLayer WGSL antialiasing selections and updates the smoothed-edge render regression to share one expected image across WebGL and WebGPU.
Confidence Score: 5/5The PR appears safe to merge with no actionable defects identified. The corrected WGSL selections match both the language’s true-value ordering and the established GLSL branches, while the accompanying render-test and golden-image changes cover the intended cross-device output.
|
| Filename | Overview |
|---|---|
| modules/layers/src/scatterplot-layer/scatterplot-layer.wgsl.ts | Correctly places each antialiased expression in the true-value position of WGSL select, matching the GLSL implementation. |
| test/render/test-cases/scatterplot-layer.spec.ts | Reworks the smoothed-edge render case to amplify partial edge coverage and use draw parameters supported by both device types. |
| test/render/golden-images/scatterplot-smoothedge.png | Updates the shared expected output for the corrected cross-device rendering case. |
| test/render/golden-images/platform-overrides/webgpu/scatterplot-smoothedge.png | Removes the device-specific expected image now that WebGPU output is intended to match the shared golden. |
Reviews (1): Last reviewed commit: "contrast" | Re-trigger Greptile
chrisgervang
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
WGSL
select(falseValue, trueValue, condition)has the opposite argument order from the intended ternary translation. All three ScatterplotLayer antialiasing selections are reversedChange List