Skip to content

WebGPU Viewer #2983

Draft
ashwinbhat wants to merge 5 commits into
AcademySoftwareFoundation:mainfrom
autodesk-forks:bhata/wglslgenandviewer
Draft

WebGPU Viewer #2983
ashwinbhat wants to merge 5 commits into
AcademySoftwareFoundation:mainfrom
autodesk-forks:bhata/wglslgenandviewer

Conversation

@ashwinbhat

@ashwinbhat ashwinbhat commented Jun 18, 2026

Copy link
Copy Markdown
Contributor
  • Reorganize GLSL based shader generators into sub folders.

  • Update WGSL shader generator to replace GLSL with wgsl. Introduce GlslToWgsl helper that works with binding context and syntax support.

Add a WebGPU rendering path alongside the existing WebGL one.
The viewer generates WGSL WgslShaderGenerator and routes it to Three.js TSL NodeMaterial.

  • mxtsladapter.js: mtlx WGSL -> TSL bridge
  • wgslmanifest.js: reflection manifest for wgsl shader
image

This work is towards these issues:
#2558
#2751

Move ESSL, Vulkan GLSL, and WGSL generator sources into dedicated
essl/, vk/, and wgsl/ subfolders under MaterialXGenGlsl. Update
include paths in JavaScript bindings, Python bindings, unit tests,
and MaterialXView.
Introduce GlslToWgsl helper that works with binding context and syntax support.
Add a WebGPU rendering path alongside the existing WebGL one.
The viewer generates WGSL WgslShaderGenerator and routes it to Three.js TSL NodeMaterial.

- mxtsladapter.js: mtlx WGSL -> TSL bridge
- wgslmanifest.js: reflection manifest for wgsl shader
@ashwinbhat ashwinbhat requested a review from kwokcb June 18, 2026 04:20
@ashwinbhat ashwinbhat closed this Jun 18, 2026
@ashwinbhat ashwinbhat reopened this Jun 18, 2026
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