Skip to content

feat(layers) Port PathLayer to WebGPU#10113

Draft
ibgreen wants to merge 2 commits intomasterfrom
ib/path-layer-webgpu
Draft

feat(layers) Port PathLayer to WebGPU#10113
ibgreen wants to merge 2 commits intomasterfrom
ib/path-layer-webgpu

Conversation

@ibgreen
Copy link
Copy Markdown
Collaborator

@ibgreen ibgreen commented Mar 18, 2026

Closes #

Background

  • Rough port of path layer to WebGPU
  • renders but not yet correctly
image

Change List

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 90.972% (-0.09%) from 91.061%
when pulling 1fffe32 on ib/path-layer-webgpu
into ec090f3 on master.

vertexPositions: {
size: 3,
// Start filling buffer from 1 vertex in
vertexOffset: 1,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has the vertexOffset: 1 been missed in the WebGPU port?

attributeManager!.addInstanced({
instancePositions: {
size: 12,
type: 'float32',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it expected we use float32? WebGL has float64.

? this.getAttributeManager()!.getBufferLayouts()
: this.getAttributeManager()!
.getBufferLayouts()
.map(layout =>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extract to helper?

type: opts.fp64 ? Float64Array : Float32Array
},
segmentTypes: {size: 1, type: Uint8ClampedArray}
segmentTypes: {size: 1, type: Float32Array}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change? Can't we use Uint8Array?

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