Skip to content

fix(layers): ScatterplotLayer antialiasing on webgpu - #10642

Merged
Pessimistress merged 3 commits into
masterfrom
x/scatterplot-webgpu
Sep 3, 2026
Merged

Pessimistress merged 3 commits into
masterfrom
x/scatterplot-webgpu

Conversation

@Pessimistress

Copy link
Copy Markdown
Collaborator

Background

WGSL select(falseValue, trueValue, condition) has the opposite argument order from the intended ternary translation. All three ScatterplotLayer antialiasing selections are reversed

Change List

  • Fix ScatterplotLayer wgsl shader
  • Update test case to support both device types
  • Remove webgpu golden image override

@Pessimistress Pessimistress changed the title X/scatterplot webgpu fix(layers): ScatterplotLayer antialiasing on webgpu Sep 2, 2026
@greptile-apps

greptile-apps Bot commented Sep 2, 2026

Copy link
Copy Markdown

Greptile Summary

The PR corrects all three ScatterplotLayer WGSL antialiasing selections and updates the smoothed-edge render regression to share one expected image across WebGL and WebGPU.

  • Reorders WGSL select operands to match WGSL semantics and the existing GLSL shader.
  • Revises the smoothed-edge test to render both antialiased and hard-edged passes with backend-neutral depth parameters.
  • Updates the shared golden image and removes the WebGPU-specific override.

Confidence Score: 5/5

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

Important Files Changed

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

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 82.481%. remained the same — x/scatterplot-webgpu into master

@Pessimistress
Pessimistress merged commit 68139cf into master Sep 3, 2026
7 checks passed
@Pessimistress
Pessimistress deleted the x/scatterplot-webgpu branch September 3, 2026 18:01
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