forma icon indicating copy to clipboard operation
forma copied to clipboard

Clean up shaders.

Open dragostis opened this issue 3 years ago • 2 comments

Currently, some shaders use templating, others don't, while also using different invocation styles.

We should:

  • [ ] organize shaders better with the use of imports
  • [ ] have more variables be configurable by templating (e.g. workgroup size)
  • [ ] use the same value for max invocations per dispatch and have one single method to deal with this limitation.

dragostis avatar Dec 16 '22 15:12 dragostis

I would be happy to work on that! 👍

ayshiff avatar Dec 17 '22 14:12 ayshiff

Let's start by finding the right template engine to use. Ideally, a very small one with import support would be ideal. Currently, we're using ramhorns, but maybe there's a better alternative?

Also, maybe there's an alternative that can do most of the work offline (i.e. at compile time) and leave perhaps one or tweo variables overiddable.

dragostis avatar Dec 18 '22 12:12 dragostis