Example on how to use wesl together with timefold
Minimal code needed on how to use timefold together with wesl
src/main.ts
- Entrypoint. Add Plugins and Systems and start the world.src/world.ts
- Create a single instance of our world.src/render-plugin.ts
- Minimal RenderPlugin implementationsrc/timefold-generated-wgsl.ts
- Wgsl code generated by timefoldpublic/main.wesl
- Main wesl file that imports structs that are generated by timefoldsrc/wesl.ts
- Leverage wesl to build the final webgpu shader module
See Code comments in src/wesl.ts