You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// load wgsl text (using vite syntax. see Build Support below.)constwgsl=import.meta.glob("./shaders/*.wgsl",{query: "?raw",eager: true,import: "default",});// register the linkable exportsconstregistry=newModuleRegistry({ wgsl });// link my main shader wgsl with imported modules,// using the provided variables for import parameters constcode=registry.link("main",{WorkgroupSize: 128});// pass the linked wgsl to WebGPU as normaldevice.createShaderModule({ code });
The text was updated successfully, but these errors were encountered:
Current API:
The text was updated successfully, but these errors were encountered: