Skip to content

mighdoll/timefold-wesl-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timefold-wesl-example

Example on how to use wesl together with timefold

Info

Minimal code needed on how to use timefold together with wesl

Repo structure

  • 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 implementation
  • src/timefold-generated-wgsl.ts - Wgsl code generated by timefold
  • public/main.wesl - Main wesl file that imports structs that are generated by timefold
  • src/wesl.ts - Leverage wesl to build the final webgpu shader module

See Code comments in src/wesl.ts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.3%
  • HTML 4.7%