Skip to content

feat(ImageCPRMapper): add ImageCPRMapper in WebGPU#3471

Open
daker wants to merge 3 commits intoKitware:masterfrom
daker:feat-webgpu-imagecprmapper
Open

feat(ImageCPRMapper): add ImageCPRMapper in WebGPU#3471
daker wants to merge 3 commits intoKitware:masterfrom
daker:feat-webgpu-imagecprmapper

Conversation

@daker
Copy link
Copy Markdown
Collaborator

@daker daker commented Apr 4, 2026

Context

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:

@daker daker force-pushed the feat-webgpu-imagecprmapper branch 3 times, most recently from 94b95e5 to f3714a8 Compare April 5, 2026 13:44
@daker daker marked this pull request as ready for review April 7, 2026 12:21
Copy link
Copy Markdown
Member

@finetjul finetjul left a comment

Choose a reason for hiding this comment

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

I did a quick review, looks fine generally speaking. Did not try it.

Comment thread Sources/Rendering/WebGPU/ImageCPRMapper/index.js Outdated
@daker daker mentioned this pull request Apr 8, 2026
37 tasks
daker added 3 commits April 22, 2026 16:41
WebGPU Glyph3DMapper could create a zero-byte glyphSSBO when the glyph
mapper had no instances. Dawn rejects bind groups that bind zero-sized
storage buffers, which caused runtime validation failures during
CreateBindGroup.

This change keeps the draw count at zero but allocates a single dummy
SSBO instance when numInstances === 0, initializing identity
matrix/normal data and default color when needed. That preserves
behavior while ensuring the storage buffer binding remains valid.
@daker daker force-pushed the feat-webgpu-imagecprmapper branch from f3714a8 to 91b8a65 Compare April 22, 2026 14:54
@daker daker requested a review from finetjul April 22, 2026 15:36
@finetjul finetjul requested a review from sankhesh April 23, 2026 19:59
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.

2 participants