Skip to content

WebGPUPathTracer: Get megakernel working in Firefox, Safari#745

Merged
gkjohnson merged 1 commit intowebgpu-pathtracerfrom
webgpu/cross-browser
Mar 10, 2026
Merged

WebGPUPathTracer: Get megakernel working in Firefox, Safari#745
gkjohnson merged 1 commit intowebgpu-pathtracerfrom
webgpu/cross-browser

Conversation

@gkjohnson
Copy link
Copy Markdown
Owner

"texture_storage_2d" nodes are not supported as function arguments so they've been replaced here with the wgslTagFn injection approach. If this looks okay I can adjust the remainder of the includes to use the template tag variable injection.

  • Adjust WgslTagFn to support injecting storage texture nodes
  • Adjust nodeProxy to be resilient to the type of checking that wgslTagFn does
  • Remove whitespace stripping to make shader warnings, output readable

cc @TheBlek

@gkjohnson
Copy link
Copy Markdown
Owner Author

When I get a chance I'll make another PR with the remainder of the shader converted along with the wave front version.

@gkjohnson gkjohnson merged commit e8a18e6 into webgpu-pathtracer Mar 10, 2026
1 check passed
@gkjohnson gkjohnson deleted the webgpu/cross-browser branch March 10, 2026 06:48
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