Repository navigation
fix(layers): remove WebGPU custom packing in SolidPolygonLayer - #10803
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 387ac6d. Configure here.
|
(cherry picked from commit b04c8f2)
|
Released in deck.gl 9.4.1. Thanks @Pessimistress! |

WebGPU special code path bypasses tesselator binary attribute handling for no apparent reason.
Note
Medium Risk
Changes extruded polygon side/wireframe vertex binding on WebGPU and removes custom binary position handling; incorrect stride/offset could break rendering or ring boundaries.
Overview
SolidPolygonLayer on WebGPU now follows the same attribute path as WebGL instead of maintaining a separate packing and tessellator bypass for binary polygon data.
nextVertexPositionsis always supplied viashaderAttributeswithvertexOffset: 1(same buffer, stride-based offset), so the dedicatednextVertexPositionsattribute andcalculateNextPositionsCPU copy loop are removed. WebGPU-only widening of binarygetPolygonintoFloat64ArrayincalculatePositionsand the extrabuffersclone passed into the tessellator are also dropped—positions again come from the tessellator like other backends.Tests now assert float32 binary positions are preserved, that current and next position views share one buffer, and that the WebGPU buffer layout uses byte stride for the next vertex rather than a separate array.
Reviewed by Cursor Bugbot for commit 9315470. Bugbot is set up for automated code reviews on this repo. Configure here.