Skip to content

feat(WebGPU): add Convolution2DPass - #3614

Open
daker wants to merge 1 commit into
Kitware:masterfrom
daker:webgpu-convolution2dpass
Open

feat(WebGPU): add Convolution2DPass#3614
daker wants to merge 1 commit into
Kitware:masterfrom
daker:webgpu-convolution2dpass

Conversation

@daker

@daker daker commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Context

Add the 2D convolution post process to the WebGPU backend.

Results

Changes

  • Documentation and TypeScript definitions were updated to match those changes

PR and Code Checklist

  • semantic-release commit messages
  • Run npm run reformat to have correctly formatted code

Testing

  • This change adds or fixes unit tests
  • Tested environment:
    • vtk.js:
    • OS:
    • Browser:

Add the 2D convolution post process to the WebGPU backend. The pass
renders its delegates into a color texture. Then it applies the
kernel and writes the result to the swap chain.

Add getCaptureDelegateOutput to the render pass base class. A
parent pass that reads the color texture of its delegates returns
true. The delegate then does not write to the swap chain. This makes
a chain of passes possible.

Scale the color by the alpha in the final blit. The swap chain uses
premultiplied alpha.
@daker
daker force-pushed the webgpu-convolution2dpass branch from 97421e6 to fd436cd Compare August 21, 2026 19:05
@finetjul
finetjul requested a review from sankhesh August 21, 2026 21:36
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.

1 participant